From bc74c8e0ca24aeca9c34ad900f76b0f24c0bdc78 Mon Sep 17 00:00:00 2001 From: URenko <18209292+URenko@users.noreply.github.com> Date: Mon, 15 Apr 2019 15:13:26 +0800 Subject: [PATCH] fix acfun bangumi title --- src/you_get/extractors/acfun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractors/acfun.py b/src/you_get/extractors/acfun.py index 200a3f54..424418ad 100644 --- a/src/you_get/extractors/acfun.py +++ b/src/you_get/extractors/acfun.py @@ -121,7 +121,7 @@ def acfun_download(url, output_dir='.', merge=True, info_only=False, **kwargs): # bangumi elif re.match("http://[^\.]*\.*acfun\.[^\.]+/bangumi/ab(\d+)", 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 title = title + " " + r1(r'active">([^<]*)', html) vid = match1(html, r'videoId="(\d+)"')