mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
[qq] fix #1355
This commit is contained in:
parent
3a8ce8819d
commit
326bae23e1
@ -53,6 +53,7 @@ def qq_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
||||
vid = vid[0] if vid else match1(content, r'vid\s*:\s*"\s*([^"]+)"') #general fallback
|
||||
title = match1(content,r'<a.*?id\s*=\s*"%s".*?title\s*=\s*"(.+?)".*?>'%vid)
|
||||
title = match1(content, r'title">([^"]+)</p>') if not title else title
|
||||
title = match1(content, r'"title":"([^"]+)"') if not title else title
|
||||
title = vid if not title else title #general fallback
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user