[qq] break if no pay

This commit is contained in:
Mort Yao 2018-03-22 22:44:33 +01:00
parent 3faaebb676
commit 8979cd63ea
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -47,6 +47,9 @@ def qq_download_by_vid(vid, title, output_dir='.', merge=True, info_only=False):
else:
log.w(key_json['msg'])
break
if key_json.get('filename') is None:
log.w(key_json['msg'])
break
part_urls.append(url)
_, ext, size = url_info(url)