mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
Fix title extraction for the new bilibili web page
This commit is contained in:
parent
3e0e9b8cc5
commit
3e68331e96
@ -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'<h2>([^<>]+)</h2>', html)
|
||||
title = r1(r'<h2[^>]*>([^<>]+)</h2>', html)
|
||||
title = unescape_html(title)
|
||||
title = escape_file_path(title)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user