mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[qq] fix #2353
This commit is contained in:
parent
77542320f0
commit
31200781b2
@ -27,7 +27,10 @@ def qq_download_by_vid(vid, title, output_dir='.', merge=True, info_only=False):
|
||||
part_urls= []
|
||||
total_size = 0
|
||||
for part in range(1, seg_cnt+1):
|
||||
filename = fn_pre + '.p' + str(part_format_id % 10000) + '.' + str(part) + '.mp4'
|
||||
if seg_cnt == 1 and video_json['vl']['vi'][0]['vh'] <= 480:
|
||||
filename = fn_pre + '.mp4'
|
||||
else:
|
||||
filename = fn_pre + '.p' + str(part_format_id % 10000) + '.' + str(part) + '.mp4'
|
||||
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)
|
||||
key_json = json.loads(match1(part_info, r'QZOutputJson=(.*)')[:-1])
|
||||
|
Loading…
Reference in New Issue
Block a user