]> jfr.im git - yt-dlp.git/commitdiff
[extractor/youtube] Fix duration check for post-live manifestless mode
authorpukkandan <redacted>
Sun, 10 Jul 2022 04:29:32 +0000 (09:59 +0530)
committerpukkandan <redacted>
Sun, 10 Jul 2022 04:29:32 +0000 (09:59 +0530)
yt_dlp/extractor/youtube.py

index 6a84473698d1ff571392c3b8463775988653c0e3..8bb58ae16ca32a4a1fb9d044b4fdf57c7225e7a6 100644 (file)
@@ -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')