From 1416cee7264ed8e9d35d58c53ca8238059953075 Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Sat, 22 Jul 2023 17:59:48 +0000 Subject: [PATCH 1/2] Update yt_dlp/options.py --- yt_dlp/options.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/yt_dlp/options.py b/yt_dlp/options.py index a6e145125..23ba7015a 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -416,13 +416,13 @@ 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).', - 'Time ranges can be specified using --download-sections to download only a part of the stream.', - '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', + 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 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', From bd730470f2ebafcf102804ba7ef326df6087b43b Mon Sep 17 00:00:00 2001 From: bashonly Date: Sat, 22 Jul 2023 13:32:10 -0500 Subject: [PATCH 2/2] Cleanup --- yt_dlp/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 4368ec57a..1965f40a2 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -3298,7 +3298,7 @@ def existing_video_file(*filepaths): fd = get_suitable_downloader(info_dict, self.params, to_stdout=temp_filename == '-') if fd not in [FFmpegFD, DashSegmentsFD] and 'no-direct-merge' not in self.params['compat_opts'] and ( info_dict.get('section_start') or info_dict.get('section_end')): - msg = (f'This format cannot be partially downloaded {fd}' if FFmpegFD.available() + msg = ('This format cannot be partially downloaded' if FFmpegFD.available() else 'You have requested downloading the video partially, but ffmpeg is not installed') self.report_error(f'{msg}. Aborting') return