aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tutv.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-06-29 17:42:15 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-06-29 17:42:15 +0200
commit6ffe72835ad3c4f941c2ea35a90f5c98dc6d8d97 (patch)
tree78b0819acbbb3b146ac63357ca1fea676f0999d3 /youtube_dl/extractor/tutv.py
parent8ba5e990a5b5b7d87bd5613a0c8bd6d7c6c882a3 (diff)
[tutv] Fix URL type (for Python 3)
Diffstat (limited to 'youtube_dl/extractor/tutv.py')
-rw-r--r--youtube_dl/extractor/tutv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/tutv.py b/youtube_dl/extractor/tutv.py
index 8afe48348..fcaa6ac01 100644
--- a/youtube_dl/extractor/tutv.py
+++ b/youtube_dl/extractor/tutv.py
@@ -29,8 +29,8 @@ class TutvIE(InfoExtractor):
data_url = u'http://tu.tv/flvurl.php?codVideo=' + str(internal_id)
data_content = self._download_webpage(data_url, video_id, note=u'Downloading video info')
data = compat_parse_qs(data_content)
- video_url = base64.b64decode(data['kpt'][0])
- ext = video_url.partition('?')[0].rpartition('.')[2]
+ video_url = base64.b64decode(data['kpt'][0]).decode('utf-8')
+ ext = video_url.partition(u'?')[0].rpartition(u'.')[2]
info = {
'id': internal_id,