diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-06-26 07:25:47 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-06-26 07:25:52 +0530 |
commit | d949c10c45bfc359bdacd52e6a180169b8128958 (patch) | |
tree | bbcfb75dd06e79e36d741a36aee42156dd61aacb | |
parent | ef8509c300ea50da86aea447eb214d3d6f6db6bb (diff) | |
download | hypervideo-pre-d949c10c45bfc359bdacd52e6a180169b8128958.tar.lz hypervideo-pre-d949c10c45bfc359bdacd52e6a180169b8128958.tar.xz hypervideo-pre-d949c10c45bfc359bdacd52e6a180169b8128958.zip |
[extractor/youtube] Process `post_live` over 2 hours
-rw-r--r-- | yt_dlp/extractor/youtube.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index bdc631ccb..d5607975e 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -3737,7 +3737,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): def _needs_live_processing(self, live_status, duration): if (live_status == 'is_live' and self.get_param('live_from_start') - or live_status == 'post_live' and (duration or 0) > 4 * 3600): + or live_status == 'post_live' and (duration or 0) > 2 * 3600): return live_status def _extract_formats_and_subtitles(self, streaming_data, video_id, player_url, live_status, duration): @@ -4238,7 +4238,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): for fmt in filter(is_bad_format, formats): fmt['preference'] = (fmt.get('preference') or -1) - 10 - fmt['format_note'] = join_nonempty(fmt.get('format_note'), '(Last 4 hours)', delim=' ') + fmt['format_note'] = join_nonempty(fmt.get('format_note'), '(Last 2 hours)', delim=' ') if needs_live_processing: self._prepare_live_from_start_formats( |