mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-01 02:37:29 +01:00
[qqmusic] Use meaningful variable names
This commit is contained in:
parent
f00a650705
commit
e8ac61e840
@ -76,14 +76,14 @@ def _real_extract(self, url):
|
|||||||
transform_source=strip_jsonp)['key']
|
transform_source=strip_jsonp)['key']
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for k, f in self._FORMATS.items():
|
for format_id, details in self._FORMATS.items():
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': 'http://cc.stream.qqmusic.qq.com/%s%s.%s?vkey=%s&guid=%s&fromtag=0'
|
'url': 'http://cc.stream.qqmusic.qq.com/%s%s.%s?vkey=%s&guid=%s&fromtag=0'
|
||||||
% (f['prefix'], mid, f['ext'], vkey, guid),
|
% (details['prefix'], mid, details['ext'], vkey, guid),
|
||||||
'format': k,
|
'format': format_id,
|
||||||
'format_id': k,
|
'format_id': format_id,
|
||||||
'preference': f['preference'],
|
'preference': details['preference'],
|
||||||
'abr': f.get('abr')
|
'abr': details.get('abr'),
|
||||||
})
|
})
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user