mirror of https://github.com/yt-dlp/yt-dlp.git
post-merge cleanup
This commit is contained in:
parent
19003f882b
commit
44c8cdb728
|
@ -1,5 +1,5 @@
|
||||||
import re
|
|
||||||
import json
|
import json
|
||||||
|
import re
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
@ -178,7 +178,7 @@ class CeskaTelevizeIE(InfoExtractor):
|
||||||
'requestSource': current_item.get('requestSource'),
|
'requestSource': current_item.get('requestSource'),
|
||||||
'drm': current_item.get('drm'),
|
'drm': current_item.get('drm'),
|
||||||
'quality': current_item.get('quality'),
|
'quality': current_item.get('quality'),
|
||||||
}]
|
}],
|
||||||
}
|
}
|
||||||
data = {'data': json.dumps(data).encode('utf-8')}
|
data = {'data': json.dumps(data).encode('utf-8')}
|
||||||
else:
|
else:
|
||||||
|
@ -231,7 +231,7 @@ class CeskaTelevizeIE(InfoExtractor):
|
||||||
if playlist_url:
|
if playlist_url:
|
||||||
if playlist_url == 'error_region':
|
if playlist_url == 'error_region':
|
||||||
raise ExtractorError(NOT_AVAILABLE_STRING, expected=True)
|
raise ExtractorError(NOT_AVAILABLE_STRING, expected=True)
|
||||||
req = Request(compat_urllib_parse_unquote(playlist_url))
|
req = Request(urllib.parse.unquote(playlist_url))
|
||||||
req.headers['Referer'] = url
|
req.headers['Referer'] = url
|
||||||
playlist = self._download_json(req, playlist_id, fatal=False)
|
playlist = self._download_json(req, playlist_id, fatal=False)
|
||||||
if not playlist:
|
if not playlist:
|
||||||
|
|
Loading…
Reference in New Issue