1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-21 00:33:01 +08:00

[CeskaTelevize] fix python3 support @dstftw

This commit is contained in:
pulpe 2014-03-01 16:02:51 +01:00
parent aa5590fa07
commit c3cb92d1ab

View 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)