mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 20:52:31 +03:00
Fix builtins.KeyError.
This commit is contained in:
parent
021a2f62a3
commit
b7132a5283
@ -202,10 +202,10 @@ class VideoExtractor():
|
|||||||
log.wtf('[Failed] Cannot extract video source.')
|
log.wtf('[Failed] Cannot extract video source.')
|
||||||
# For legacy main()
|
# For legacy main()
|
||||||
download_urls(urls, self.title, ext, total_size,
|
download_urls(urls, self.title, ext, total_size,
|
||||||
output_dir=kwargs['output_dir'],
|
output_dir=kwargs.get('output_dir', '.'),
|
||||||
merge=kwargs['merge'],
|
merge=kwargs.get('merge', True),
|
||||||
av=stream_id in self.dash_streams)
|
av=stream_id in self.dash_streams)
|
||||||
if not kwargs['caption']:
|
if not kwargs.get('caption',True):
|
||||||
print('Skipping captions.')
|
print('Skipping captions.')
|
||||||
return
|
return
|
||||||
for lang in self.caption_tracks:
|
for lang in self.caption_tracks:
|
||||||
|
Loading…
Reference in New Issue
Block a user