[CeskaTelevize] fix python3 support @dstftw
authorpulpe <Pulpan3@gmail.com>
Sat, 1 Mar 2014 15:02:51 +0000 (16:02 +0100)
committerpulpe <Pulpan3@gmail.com>
Sat, 1 Mar 2014 15:02:51 +0000 (16:02 +0100)
youtube_dl/extractor/ceskatelevize.py

index 8a36bd9808e9b9582695d7a4a057124dc9864be4..b1c683787d15c0ae159478c7ec1691acbf760cd6 100644 (file)
@@ -3,7 +3,6 @@ from __future__ import unicode_literals
 
 import re
 import json
-from urllib import unquote
 
 from .common import InfoExtractor
 from ..utils import (
@@ -70,7 +69,7 @@ class CeskaTelevizeIE(InfoExtractor):
 
         playlistpage = self._download_webpage(req, video_id)
 
-        req = compat_urllib_request.Request(unquote(json.loads(playlistpage)['url']))
+        req = compat_urllib_request.Request(compat_urllib_parse.unquote(json.loads(playlistpage)['url']))
         req.add_header('Referer', url)
 
         playlist = self._download_xml(req, video_id)