mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 03:17:44 +03:00
[bilibili] hint for cookies
This commit is contained in:
parent
81a81b0abe
commit
a577c8553e
@ -112,6 +112,8 @@ def bilibili_download(url, output_dir='.', merge=True, info_only=False, **kwargs
|
||||
|
||||
title = r1_of([r'<meta name="title" content="([^<>]{1,999})" />',
|
||||
r'<h1[^>]*>([^<>]+)</h1>'], html)
|
||||
if not title:
|
||||
log.wtf('[Failed] Video does not exist. Try to login with --cookies.')
|
||||
title = unescape_html(title)
|
||||
title = escape_file_path(title)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user