mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
[bilibili] do not hide any URLError (better for debugging)
This commit is contained in:
parent
2baeed762a
commit
24b2b4cb55
@ -95,12 +95,9 @@ def bilibili_download_by_cid(cid, title, output_dir='.', merge=True, info_only=F
|
|||||||
|
|
||||||
type_ = ''
|
type_ = ''
|
||||||
size = 0
|
size = 0
|
||||||
try:
|
for url in urls:
|
||||||
for url in urls:
|
_, type_, temp = url_info(url)
|
||||||
_, type_, temp = url_info(url)
|
size += temp or 0
|
||||||
size += temp or 0
|
|
||||||
except error.URLError:
|
|
||||||
log.wtf('[Failed] DNS not resolved. Please change your DNS server settings.')
|
|
||||||
|
|
||||||
print_info(site_info, title, type_, size)
|
print_info(site_info, title, type_, size)
|
||||||
if not info_only:
|
if not info_only:
|
||||||
@ -196,4 +193,4 @@ def bilibili_download(url, output_dir='.', merge=True, info_only=False, **kwargs
|
|||||||
|
|
||||||
site_info = "bilibili.com"
|
site_info = "bilibili.com"
|
||||||
download = bilibili_download
|
download = bilibili_download
|
||||||
download_playlist = bilibili_download
|
download_playlist = bilibili_download
|
||||||
|
Loading…
Reference in New Issue
Block a user