Skip to content

Commit

Permalink
[ie/youtube] Improve detection of faulty HLS formats
Browse files Browse the repository at this point in the history
Authored by: bashonly
  • Loading branch information
bashonly committed Nov 16, 2023
1 parent fe6c82c commit 08a4f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -4563,7 +4563,7 @@ def process_language(container, base_url, lang_code, sub_name, query):
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
Expand Down

0 comments on commit 08a4f43

Please sign in to comment.