mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
Update qq.py
[qq] Fixing extraction
This commit is contained in:
parent
8d67fa7426
commit
815e3107aa
@ -46,7 +46,9 @@ def qq_download_by_vid(vid, title, output_dir='.', merge=True, info_only=False):
|
|||||||
filename = '.'.join([fn_pre, magic_str, str(part), video_type])
|
filename = '.'.join([fn_pre, magic_str, str(part), video_type])
|
||||||
|
|
||||||
key_api = "http://vv.video.qq.com/getkey?otype=json&platform=11&format={}&vid={}&filename={}&appver=3.2.19.333".format(part_format_id, vid, filename)
|
key_api = "http://vv.video.qq.com/getkey?otype=json&platform=11&format={}&vid={}&filename={}&appver=3.2.19.333".format(part_format_id, vid, filename)
|
||||||
part_info = get_content(key_api, headers)
|
h = headers
|
||||||
|
h.update({"Referer": key_api})
|
||||||
|
part_info = get_content(key_api, h)
|
||||||
key_json = json.loads(match1(part_info, r'QZOutputJson=(.*)')[:-1])
|
key_json = json.loads(match1(part_info, r'QZOutputJson=(.*)')[:-1])
|
||||||
if key_json.get('key') is None:
|
if key_json.get('key') is None:
|
||||||
vkey = video_json['vl']['vi'][0]['fvkey']
|
vkey = video_json['vl']['vi'][0]['fvkey']
|
||||||
|
Loading…
Reference in New Issue
Block a user