mirror of
https://github.com/soimort/you-get.git
synced 2025-02-02 16:24:00 +03:00
better support for Acfun
This commit is contained in:
parent
79848901f7
commit
57b0f54126
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user