mirror of
https://github.com/soimort/you-get.git
synced 2025-02-12 04:55:21 +03:00
update the rule of download url
This commit is contained in:
parent
0cabb980b6
commit
ca2154be5e
@ -10,7 +10,8 @@ def qq_download_by_vid(vid, title, output_dir='.', merge=True, info_only=False):
|
|||||||
output_json = json.loads(match1(content, r'QZOutputJson=(.*)')[:-1])
|
output_json = json.loads(match1(content, r'QZOutputJson=(.*)')[:-1])
|
||||||
url = output_json['vl']['vi'][0]['ul']['ui'][0]['url']
|
url = output_json['vl']['vi'][0]['ul']['ui'][0]['url']
|
||||||
fvkey = output_json['vl']['vi'][0]['fvkey']
|
fvkey = output_json['vl']['vi'][0]['fvkey']
|
||||||
url = '%s/%s.mp4?vkey=%s' % ( url, vid, fvkey )
|
lnk = output_json['vl']['vi'][0]['lnk']
|
||||||
|
url = '%s/%s.mp4?vkey=%s' % ( url, lnk, fvkey )
|
||||||
_, ext, size = url_info(url, faker=True)
|
_, ext, size = url_info(url, faker=True)
|
||||||
|
|
||||||
print_info(site_info, title, ext, size)
|
print_info(site_info, title, ext, size)
|
||||||
|
Loading…
Reference in New Issue
Block a user