This commit is contained in:
Mort Yao 2016-08-21 18:54:58 +02:00
parent 3a8ce8819d
commit 326bae23e1
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -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