]> jfr.im git - yt-dlp.git/blobdiff - youtube_dl/__init__.py
Added new option '--all-srt' to download all the subtitles of a video.
[yt-dlp.git] / youtube_dl / __init__.py
index ababeac872b8050a55846c549fde557007c872d8..20a22a4d116d9a514b7e5131297a4bb200df672b 100644 (file)
@@ -179,6 +179,9 @@ def _find_term_columns():
     video_format.add_option('--only-srt',
             action='store_true', dest='onlysubtitles',
             help='downloads only the subtitles of the video (currently youtube only)', default=False)
+    video_format.add_option('--all-srt',
+            action='store_true', dest='allsubtitles',
+            help='downloads all the available subtitles of the video (currently youtube only)', default=False)
     video_format.add_option('--srt-lang',
             action='store', dest='subtitleslang', metavar='LANG',
             help='language of the closed captions to download (optional) use IETF language tags like \'en\'')
@@ -454,6 +457,7 @@ def _real_main():
         'writeinfojson': opts.writeinfojson,
         'writesubtitles': opts.writesubtitles,
         'onlysubtitles': opts.onlysubtitles,
+        'allsubtitles': opts.allsubtitles,
         'subtitleslang': opts.subtitleslang,
         'matchtitle': decodeOption(opts.matchtitle),
         'rejecttitle': decodeOption(opts.rejecttitle),