Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bin/download_what.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ def download_what(ds, api_course, course_id, fmt, transcript_lang, what, enable_
skip=True
ok=True
if not skip:
url=stream_locs[fmt].url
if fmt in stream_locs:
url=stream_locs[fmt].url
else:
url=stream_locs[max(stream_locs)].url

status_code = downloadFile(url,media_output_filename)
if status_code != 200:
retry_count += 1
Expand Down