aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-05-27 05:07:00 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-05-27 05:07:00 +0530
commit829bbd1d05ae7e4519327f1cb6e75b3da38e0a0b (patch)
tree28c3fda4e0a6f9aed717f0055e8b18b302314910
parent8a82af3511b4379af0d239dbd01c672c17a2c46a (diff)
downloadhypervideo-pre-829bbd1d05ae7e4519327f1cb6e75b3da38e0a0b.tar.lz
hypervideo-pre-829bbd1d05ae7e4519327f1cb6e75b3da38e0a0b.tar.xz
hypervideo-pre-829bbd1d05ae7e4519327f1cb6e75b3da38e0a0b.zip
[youtube] Add warning for PostLiveDvr
Closes #3746, Related #1564
-rw-r--r--yt_dlp/extractor/youtube.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py
index 3f6886131..69b58088d 100644
--- a/yt_dlp/extractor/youtube.py
+++ b/yt_dlp/extractor/youtube.py
@@ -3414,6 +3414,13 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
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)