From 3faa1e33eda68dd521a14024ab8550836963e9fb Mon Sep 17 00:00:00 2001 From: Elyse <26639800+elyse0@users.noreply.github.com> Date: Sat, 11 Mar 2023 19:10:21 -0600 Subject: [PATCH] Add initial documentation --- yt_dlp/options.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 84aeda7f12..3cb479fab9 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -415,7 +415,12 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs): general.add_option( '--live-from-start', action='store_true', dest='live_from_start', - help='Download livestreams from the start. Currently only supported for YouTube (Experimental)') + help=('Download livestreams from the start. Currently only supported for YouTube (Experimental).', + 'Time ranges can be specified using --download-sections to download only a part of the stream.', + 'Negative values are allowed for specifying a previous time (only hours and minutes), ', + 'e.g. --download-sections "*-24hours-0" (download last 24 hours),', + 'e.g. --download-sections "*-1hour-30minutes" (download last hour and continue until next 30 minutes),', + 'e.g. --download-sections "*-2hours--1hour" (download one hour, starting from 2 hours ago)')) general.add_option( '--no-live-from-start', action='store_false', dest='live_from_start',