aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2023-11-25 20:21:29 -0600
committerGitHub <noreply@github.com>2023-11-26 02:21:29 +0000
commitbb5a54e6db2422bbd155d93a0e105b6616c09467 (patch)
tree69d7e040573724f05fa00176c1f11746d525282c
parent628fa244bbce2ad39775a5959e99588f30cac152 (diff)
[ie/youtube] Improve detection of faulty HLS formats (#8646)
Closes #7747 Authored by: bashonly
-rw-r--r--yt_dlp/extractor/youtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py
index 73fe233ef..449d9d1a5 100644
--- a/yt_dlp/extractor/youtube.py
+++ b/yt_dlp/extractor/youtube.py
@@ -4562,7 +4562,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
if upload_date and live_status not in ('is_live', 'post_live', 'is_upcoming'):
# Newly uploaded videos' HLS formats are potentially problematic and need to be checked
upload_datetime = datetime_from_str(upload_date).replace(tzinfo=datetime.timezone.utc)
- if upload_datetime >= datetime_from_str('today-1day'):
+ if upload_datetime >= datetime_from_str('today-2days'):
for fmt in info['formats']:
if fmt.get('protocol') == 'm3u8_native':
fmt['__needs_testing'] = True