默认下载fhd 1080p视频

只是把shd改成fhd,亲测可下载1080p
This commit is contained in:
Quantum LIu 2021-04-26 23:04:40 +08:00 committed by GitHub
parent 1c841f7e8c
commit 5798f3e16e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ def qq_download_by_vid(vid, title, output_dir='.', merge=True, info_only=False):
video_json = None video_json = None
platforms = [4100201, 11] platforms = [4100201, 11]
for platform in platforms: for platform in platforms:
info_api = 'http://vv.video.qq.com/getinfo?otype=json&appver=3.2.19.333&platform={}&defnpayver=1&defn=shd&vid={}'.format(platform, vid) info_api = 'http://vv.video.qq.com/getinfo?otype=json&appver=3.2.19.333&platform={}&defnpayver=1&defn=fhd&vid={}'.format(platform, vid)
info = get_content(info_api, headers) info = get_content(info_api, headers)
video_json = json.loads(match1(info, r'QZOutputJson=(.*)')[:-1]) video_json = json.loads(match1(info, r'QZOutputJson=(.*)')[:-1])
if not video_json.get('msg')=='cannot play outside': if not video_json.get('msg')=='cannot play outside':