mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
[qqmusic] Rearrange codes
This commit is contained in:
parent
4bde5ce992
commit
f00a650705
|
@ -80,7 +80,9 @@ class QQMusicIE(InfoExtractor):
|
||||||
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),
|
% (f['prefix'], mid, f['ext'], vkey, guid),
|
||||||
'format': k, 'format_id': k, 'preference': f['preference'],
|
'format': k,
|
||||||
|
'format_id': k,
|
||||||
|
'preference': f['preference'],
|
||||||
'abr': f.get('abr')
|
'abr': f.get('abr')
|
||||||
})
|
})
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
Loading…
Reference in a new issue