commit 974a6146fe71029a8dedf670fd72501da5ec3809 parent a69e8bfdd9e94537eb72a358c1b62dbea8a59a04 Author: Yen Chi Hsuan <yan12125@gmail.com> Date: Thu, 18 Jun 2015 21:40:45 +0800 [bbccouk] Fix error handling Diffstat:
M | youtube_dl/extractor/bbccouk.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/bbccouk.py b/youtube_dl/extractor/bbccouk.py @@ -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