From 78285eea86fbb05dc5e59026ba87804afbb75eec Mon Sep 17 00:00:00 2001 From: Elyse <26639800+elyse0@users.noreply.github.com> Date: Sat, 6 May 2023 23:24:58 -0600 Subject: [PATCH] Update options docs --- yt_dlp/options.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/yt_dlp/options.py b/yt_dlp/options.py index da6c1e064..ec1fc4148 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -417,10 +417,12 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs): action='store_true', dest='live_from_start', 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, ', - 'e.g. --download-sections "*-24hours - 0" (download last 24 hours),', - 'e.g. --download-sections "*-1h - 30m" (download from 1 hour ago until the next 30 minutes),', - 'e.g. --download-sections "*-3days - -2days" (download from 3 days ago until 2 days ago')) + 'Negative values are allowed for specifying a relative previous time, using the # syntax', + 'e.g. --download-sections "#-24hours - 0" (download last 24 hours),', + 'e.g. --download-sections "#-1h - 30m" (download from 1 hour ago until the next 30 minutes),', + 'e.g. --download-sections "#-3days - -2days" (download from 3 days ago until 2 days ago).', + 'It is also possible to specify an exact unix timestamp range, using the * syntax', + 'e.g. --download-sections "*1672531200 - 1672549200" (download between those two timestamps)')) general.add_option( '--no-live-from-start', action='store_false', dest='live_from_start',