From 3e68331e9678a30d9f345ae89df9d038944d02b5 Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Sun, 17 Nov 2013 11:00:48 +0800 Subject: [PATCH] Fix title extraction for the new bilibili web page --- src/you_get/extractor/bilibili.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractor/bilibili.py b/src/you_get/extractor/bilibili.py index 322b60fc..df7640bc 100644 --- a/src/you_get/extractor/bilibili.py +++ b/src/you_get/extractor/bilibili.py @@ -79,7 +79,7 @@ def bilibili_download(url, output_dir = '.', merge = True, info_only = False): assert re.match(r'http://(www.bilibili.tv|bilibili.kankanews.com|bilibili.smgbb.cn)/video/av(\d+)', url) html = get_html(url) - title = r1(r'

([^<>]+)

', html) + title = r1(r']*>([^<>]+)', html) title = unescape_html(title) title = escape_file_path(title)