Don't assume the 'subtitlesformat' is set in the params dict (fixes #1750)
This commit is contained in:
parent
ea7a7af1d4
commit
ca715127a2
2 changed files with 3 additions and 3 deletions
|
@ -640,7 +640,7 @@ class YoutubeDL(object):
|
|||
# subtitles download errors are already managed as troubles in relevant IE
|
||||
# that way it will silently go on when used with unsupporting IE
|
||||
subtitles = info_dict['subtitles']
|
||||
sub_format = self.params.get('subtitlesformat')
|
||||
sub_format = self.params.get('subtitlesformat', 'srt')
|
||||
for sub_lang in subtitles.keys():
|
||||
sub = subtitles[sub_lang]
|
||||
if sub is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue