From: pukkandan Date: Sun, 10 Jul 2022 04:29:32 +0000 (+0530) Subject: [extractor/youtube] Fix duration check for post-live manifestless mode X-Git-Tag: 2022.07.18~49 X-Git-Url: https://jfr.im/git/yt-dlp.git/commitdiff_plain/a3fb1ca5abe721b6fcef5f99bfde9f11360488b8 [extractor/youtube] Fix duration check for post-live manifestless mode --- diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 6a8447369..8bb58ae16 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -3455,7 +3455,7 @@ def feed_entry(name): if get_first(video_details, 'isPostLiveDvr'): self.write_debug('Video is in Post-Live Manifestless mode') - if duration or 0 > 4 * 3600: + if (duration or 0) > 4 * 3600: self.report_warning( 'The livestream has not finished processing. Only 4 hours of the video can be currently downloaded. ' 'This is a known issue and patches are welcome')