This commit is contained in:
hellsof 2018-01-03 11:43:26 +08:00
parent 6e17b0c7f9
commit a1290be2ec

View File

@ -149,6 +149,8 @@ def qq_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
vid = ""
if rurl:
vid = rurl.split('/')[-1].split('.')[0]
if vid == "undefined":
vid = ""
vid = vid if vid else url.split('/')[-1].split('.')[0] #https://v.qq.com/x/cover/ps6mnfqyrfo7es3/q0181hpdvo5.html?
vid = vid if vid else match1(content, r'vid"*\s*:\s*"\s*([^"]+)"') #general fallback
if not vid: