mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[bbccouk] Fix error handling
This commit is contained in:
		| @@ -267,7 +267,7 @@ class BBCCoUkIE(InfoExtractor): | ||||
|                 programme_id, 'Downloading media selection XML') | ||||
|         except ExtractorError as ee: | ||||
|             if isinstance(ee.cause, compat_HTTPError) and ee.cause.code == 403: | ||||
|                 media_selection = xml.etree.ElementTree.fromstring(ee.cause.read().encode('utf-8')) | ||||
|                 media_selection = xml.etree.ElementTree.fromstring(ee.cause.read().decode('utf-8')) | ||||
|             else: | ||||
|                 raise | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yen Chi Hsuan
					Yen Chi Hsuan