mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 05:55:02 +03:00
This commit is contained in:
parent
6e17b0c7f9
commit
a1290be2ec
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user