better support for Acfun

This commit is contained in:
Mort Yao 2012-11-29 03:38:03 +01:00
parent 79848901f7
commit 57b0f54126

View File

@ -48,7 +48,7 @@ def acfun_download(url, output_dir = '.', merge = True, info_only = False):
assert re.match(r'http://www.acfun.tv/v/ac(\d+)', url) assert re.match(r'http://www.acfun.tv/v/ac(\d+)', url)
html = get_html(url) html = get_html(url)
title = r1(r'<h1 id="title-article" class="title"[^<>]*>([^<>]+)<span', html) title = r1(r'<h1 id="title-article" class="title"[^<>]*>([^<>]+)<', html)
assert title assert title
title = unescape_html(title) title = unescape_html(title)
title = escape_file_path(title) title = escape_file_path(title)