From 0984190f93bd0b5c55748c41ca657d1ba6bf5a6b Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Wed, 14 Sep 2016 19:59:55 +0200 Subject: [PATCH] [acfun] improve regex for getting video part 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 5c6dc987..4638cb8f 100644 --- a/src/you_get/extractors/acfun.py +++ b/src/you_get/extractors/acfun.py @@ -78,7 +78,7 @@ def acfun_download(url, output_dir='.', merge=True, info_only=False, **kwargs): title = escape_file_path(title) assert title - video = re.search('data-vid="(\d+)"\s*data-scode="".*>([^<]+)', html) + video = re.search('data-vid="(\d+)"\s*data-scode=""[^<]*title="([^"]+)"', html) vid = video.group(1) title = title + ' - ' + video.group(2) acfun_download_by_vid(vid, title,