mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[ie/youtube] Check newly uploaded iOS HLS formats (#8336)
Closes #7747 Authored by: bashonly
This commit is contained in:
		| @@ -4560,6 +4560,14 @@ class YoutubeIE(YoutubeBaseInfoExtractor): | ||||
|                 self._parse_time_text(self._get_text(vpir, 'dateText'))) or upload_date | ||||
|         info['upload_date'] = upload_date | ||||
| 
 | ||||
|         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'): | ||||
|                 for fmt in info['formats']: | ||||
|                     if fmt.get('protocol') == 'm3u8_native': | ||||
|                         fmt['__needs_testing'] = True | ||||
| 
 | ||||
|         for s_k, d_k in [('artist', 'creator'), ('track', 'alt_title')]: | ||||
|             v = info.get(s_k) | ||||
|             if v: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bashonly
					bashonly