[bilibili] hint for cookies

This commit is contained in:
Mort Yao 2016-03-03 03:55:51 +01:00
parent 81a81b0abe
commit a577c8553e

View File

@ -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})" />', title = r1_of([r'<meta name="title" content="([^<>]{1,999})" />',
r'<h1[^>]*>([^<>]+)</h1>'], html) r'<h1[^>]*>([^<>]+)</h1>'], html)
if not title:
log.wtf('[Failed] Video does not exist. Try to login with --cookies.')
title = unescape_html(title) title = unescape_html(title)
title = escape_file_path(title) title = escape_file_path(title)