mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-11 07:19:30 +01:00
[CeskaTelevize] fix python3 support @dstftw
This commit is contained in:
parent
aa5590fa07
commit
c3cb92d1ab
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
from urllib import unquote
|
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
@ -70,7 +69,7 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
playlistpage = self._download_webpage(req, video_id)
|
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)
|
req.add_header('Referer', url)
|
||||||
|
|
||||||
playlist = self._download_xml(req, video_id)
|
playlist = self._download_xml(req, video_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user