diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-10 09:59:32 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-10 09:59:32 +0530 |
commit | a3fb1ca5abe721b6fcef5f99bfde9f11360488b8 (patch) | |
tree | dc473f73e19eb6974e0b790e912078363e903ff9 | |
parent | 1275aeb95559e22dc8b404e91d316b1fa6072804 (diff) | |
download | hypervideo-pre-a3fb1ca5abe721b6fcef5f99bfde9f11360488b8.tar.lz hypervideo-pre-a3fb1ca5abe721b6fcef5f99bfde9f11360488b8.tar.xz hypervideo-pre-a3fb1ca5abe721b6fcef5f99bfde9f11360488b8.zip |
[extractor/youtube] Fix duration check for post-live manifestless mode
-rw-r--r-- | yt_dlp/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 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') |