mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-25 21:59:04 +01:00
[ie/youtube] Improve detection of faulty HLS formats (#8646)
Closes #7747 Authored by: bashonly
This commit is contained in:
parent
628fa244bb
commit
bb5a54e6db
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue