[youtube] Add warning for PostLiveDvr

Closes #3746, Related #1564
This commit is contained in:
pukkandan 2022-05-27 05:07:00 +05:30
parent 8a82af3511
commit 829bbd1d05
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

View File

@ -3414,6 +3414,13 @@ def feed_entry(name):
or get_first(microformats, 'lengthSeconds')
or parse_duration(search_meta('duration'))) or None
if get_first(video_details, 'isPostLiveDvr'):
self.write_debug('Video is in Post-Live Manifestless mode')
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')
live_broadcast_details, is_live, streaming_data, formats = self._list_formats(
video_id, microformats, video_details, player_responses, player_url, duration)