aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/bbccouk.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-06-18 21:40:45 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-06-18 21:40:45 +0800
commit974a6146fe71029a8dedf670fd72501da5ec3809 (patch)
tree083c78cc2e2eae0028737911f8569a37563ab41d /youtube_dl/extractor/bbccouk.py
parenta69e8bfdd9e94537eb72a358c1b62dbea8a59a04 (diff)
[bbccouk] Fix error handling
Diffstat (limited to 'youtube_dl/extractor/bbccouk.py')
-rw-r--r--youtube_dl/extractor/bbccouk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bbccouk.py b/youtube_dl/extractor/bbccouk.py
index 249bc6bbd..4b25b8c38 100644
--- 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