mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
[bilibili] clean-up
This commit is contained in:
parent
b0cbf6e81d
commit
1496c77978
@ -108,10 +108,7 @@ def bilibili_download_by_cid(cid, title, output_dir='.', merge=True, info_only=F
|
|||||||
download_urls(urls, title, type_, total_size=None, output_dir=output_dir, merge=merge)
|
download_urls(urls, title, type_, total_size=None, output_dir=output_dir, merge=merge)
|
||||||
|
|
||||||
def bilibili_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
def bilibili_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
||||||
opener = request.build_opener(request.HTTPCookieProcessor(cookies))
|
html = get_content(url)
|
||||||
request.install_opener(opener)
|
|
||||||
|
|
||||||
html = get_html(url)
|
|
||||||
|
|
||||||
title = r1_of([r'<meta name="description" content="(.+)"',
|
title = r1_of([r'<meta name="description" content="(.+)"',
|
||||||
r'<meta name="title" content="([^<>]{1,999})" />',
|
r'<meta name="title" content="([^<>]{1,999})" />',
|
||||||
|
Loading…
Reference in New Issue
Block a user