]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/options.py
[dash,youtube] Download live from start to end (#888)
[yt-dlp.git] / yt_dlp / options.py
index f4293e6884a4c2a6264117144b4fb6d559fa919a..e3d753adfbd023174925cea92561f464050583c0 100644 (file)
@@ -258,6 +258,14 @@ def _dict_from_options_callback(
         '--no-flat-playlist',
         action='store_false', dest='extract_flat',
         help='Extract the videos of a playlist')
+    general.add_option(
+        '--live-from-start',
+        action='store_true', dest='live_from_start',
+        help='Download livestreams from the start. Currently only supported for YouTube')
+    general.add_option(
+        '--no-live-from-start',
+        action='store_false', dest='live_from_start',
+        help='Download livestreams from the current time (default)')
     general.add_option(
         '--wait-for-video',
         dest='wait_for_video', metavar='MIN[-MAX]', default=None,