下载地址获取修改
This commit is contained in:
parent
46c6742d4f
commit
c11970ed72
@ -109,16 +109,22 @@ class QQMusicIE(InfoExtractor):
|
|||||||
|
|
||||||
guid = self.m_r_get_ruin()
|
guid = self.m_r_get_ruin()
|
||||||
|
|
||||||
vkey = self._download_json(
|
vkeyinfo = self._download_json(
|
||||||
'http://base.music.qq.com/fcgi-bin/fcg_musicexpress.fcg?json=3&guid=%s' % guid,
|
'http://base.music.qq.com/fcgi-bin/fcg_musicexpress.fcg?json=3&guid=%s' % guid,
|
||||||
mid, note='Retrieve vkey', errnote='Unable to get vkey',
|
mid, note='Retrieve vkey', errnote='Unable to get vkey',
|
||||||
transform_source=strip_jsonp)['key']
|
transform_source=strip_jsonp)
|
||||||
|
|
||||||
|
try:
|
||||||
|
vkey = vkeyinfo['key']
|
||||||
|
durl = vkeyinfo['sip'][0]
|
||||||
|
except:
|
||||||
|
return {}
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for format_id, details 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': '%s%s%s.%s?vkey=%s&guid=%s'
|
||||||
% (details['prefix'], mid, details['ext'], vkey, guid),
|
% (durl, details['prefix'], mid, details['ext'], vkey, guid),
|
||||||
'format': format_id,
|
'format': format_id,
|
||||||
'format_id': format_id,
|
'format_id': format_id,
|
||||||
'preference': details['preference'],
|
'preference': details['preference'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user