mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 03:17:44 +03:00
[extractor] no-caption check
This commit is contained in:
parent
e9a431cd7d
commit
e27b5cae49
@ -203,6 +203,9 @@ class VideoExtractor():
|
||||
output_dir=kwargs['output_dir'],
|
||||
merge=kwargs['merge'],
|
||||
av=stream_id in self.dash_streams)
|
||||
if not kwargs['caption']:
|
||||
print('Skipping captions.')
|
||||
return
|
||||
for lang in self.caption_tracks:
|
||||
filename = '%s.%s.srt' % (get_filename(self.title), lang)
|
||||
print('Saving %s ... ' % filename, end="", flush=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user