mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	fix bug in 88acdbc269
				
					
				
			This commit is contained in:
		| @@ -2169,9 +2169,9 @@ class YoutubeDL(object): | ||||
|         else: | ||||
|             formats = info_dict['formats'] | ||||
|  | ||||
|         info_dict['__has_drm'] = any(f.get('has_drm') for f in formats) | ||||
|         if not self.params.get('allow_unplayable_formats'): | ||||
|             formats = [f for f in formats if not f.get('has_drm')] | ||||
|         info_dict['__has_drm'] = len(info_dict.get('formats') or ['']) > len(formats) | ||||
|  | ||||
|         if not formats: | ||||
|             self.raise_no_formats(info_dict) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan