mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-02 03:07:29 +01:00
[letv] Use single quotes
This commit is contained in:
parent
10defdd06a
commit
8fff4f61e5
@ -278,14 +278,14 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
play_json_req = sanitized_Request(
|
play_json_req = sanitized_Request(
|
||||||
'http://api.letvcloud.com/gpc.php?cf=html5&sign=signxxxxx&ver=2.2&format=json&' +
|
'http://api.letvcloud.com/gpc.php?cf=html5&sign=signxxxxx&ver=2.2&format=json&' +
|
||||||
"uu=" + uu + "&vu=" + vu)
|
'uu=' + uu + '&vu=' + vu)
|
||||||
play_json = self._download_json(play_json_req, media_id, 'Downloading playJson data')
|
play_json = self._download_json(play_json_req, media_id, 'Downloading playJson data')
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for media in play_json['data']['video_info']['media'].values():
|
for media in play_json['data']['video_info']['media'].values():
|
||||||
play_url = media['play_url']
|
play_url = media['play_url']
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': base64.b64decode(play_url['main_url'].encode('utf-8')).decode("utf-8"),
|
'url': base64.b64decode(play_url['main_url'].encode('utf-8')).decode('utf-8'),
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'format_id': int_or_none(play_url.get('vtype')),
|
'format_id': int_or_none(play_url.get('vtype')),
|
||||||
'format_note': str_or_none(play_url.get('definition')),
|
'format_note': str_or_none(play_url.get('definition')),
|
||||||
|
Loading…
Reference in New Issue
Block a user