[extractor/youtube] Fix duration check for post-live manifestless mode

pull/4340/head
pukkandan 3 years ago
parent 1275aeb955
commit a3fb1ca5ab
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -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')

Loading…
Cancel
Save