From: pulpe Date: Sat, 1 Mar 2014 15:02:51 +0000 (+0100) Subject: [CeskaTelevize] fix python3 support @dstftw X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=c3cb92d1ab1b4d449dde9e234a1854c85d093ecc;p=youtube-dl.git [CeskaTelevize] fix python3 support @dstftw --- diff --git a/youtube_dl/extractor/ceskatelevize.py b/youtube_dl/extractor/ceskatelevize.py index 8a36bd980..b1c683787 100644 --- a/youtube_dl/extractor/ceskatelevize.py +++ b/youtube_dl/extractor/ceskatelevize.py @@ -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)