mirror of
https://github.com/soimort/you-get.git
synced 2025-02-12 04:55:21 +03:00
fix: the download url is 403
This commit is contained in:
parent
ca2154be5e
commit
44626bb689
@ -5,13 +5,14 @@ __all__ = ['qq_download']
|
||||
from ..common import *
|
||||
|
||||
def qq_download_by_vid(vid, title, output_dir='.', merge=True, info_only=False):
|
||||
api = "http://h5vv.video.qq.com/getinfo?otype=json&vid=%s" % vid
|
||||
api = "http://h5vv.video.qq.com/getinfo?platform=11001&otype=json&vid=%s" % vid
|
||||
content = get_html(api)
|
||||
output_json = json.loads(match1(content, r'QZOutputJson=(.*)')[:-1])
|
||||
url = output_json['vl']['vi'][0]['ul']['ui'][0]['url']
|
||||
fvkey = output_json['vl']['vi'][0]['fvkey']
|
||||
lnk = output_json['vl']['vi'][0]['lnk']
|
||||
url = '%s/%s.mp4?vkey=%s' % ( url, lnk, fvkey )
|
||||
fn = output_json['vl']['vi'][0]['fn']
|
||||
url = '%s/%s?vkey=%s' % ( url, fn, fvkey )
|
||||
print(url)
|
||||
_, ext, size = url_info(url, faker=True)
|
||||
|
||||
print_info(site_info, title, ext, size)
|
||||
|
Loading…
Reference in New Issue
Block a user