mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
This commit is contained in:
parent
32c8bb7751
commit
6a9039aab1
@ -140,7 +140,8 @@ def qq_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
|||||||
vid = ""
|
vid = ""
|
||||||
if rurl:
|
if rurl:
|
||||||
vid = rurl.split('/')[-1].split('.')[0]
|
vid = rurl.split('/')[-1].split('.')[0]
|
||||||
if vid == "undefined":
|
# https://v.qq.com/x/page/d0552xbadkl.html https://y.qq.com/n/yqq/mv/v/g00268vlkzy.html
|
||||||
|
if vid == "undefined" or vid == "index":
|
||||||
vid = ""
|
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 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
|
vid = vid if vid else match1(content, r'vid"*\s*:\s*"\s*([^"]+)"') #general fallback
|
||||||
|
Loading…
Reference in New Issue
Block a user