Merge branch 'patch-1' of https://github.com/URenko/you-get into URenko-patch-1

This commit is contained in:
Mort Yao 2019-04-22 12:23:42 +02:00
commit 854e8dfd96
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -121,7 +121,7 @@ def acfun_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
# bangumi # bangumi
elif re.match("http://[^\.]*\.*acfun\.[^\.]+/bangumi/ab(\d+)", url): elif re.match("http://[^\.]*\.*acfun\.[^\.]+/bangumi/ab(\d+)", url):
html = get_content(url) html = get_content(url)
title = match1(html, r'"newTitle"\s*:\s*"([^"]+)"') title = match1(html, r'"title"\s*:\s*"([^"]+)"')
if match1(url, r'_(\d+)$'): # current P if match1(url, r'_(\d+)$'): # current P
title = title + " " + r1(r'active">([^<]*)', html) title = title + " " + r1(r'active">([^<]*)', html)
vid = match1(html, r'videoId="(\d+)"') vid = match1(html, r'videoId="(\d+)"')