mirror of
https://github.com/soimort/you-get.git
synced 2025-02-09 03:37:52 +03:00
add Bilibili Video not found
增加 B站视频找不到情况的提示
This commit is contained in:
parent
76d35fb2c6
commit
b2217e5b95
@ -136,7 +136,9 @@ class Bilibili(VideoExtractor):
|
|||||||
html_content = '' # live always returns 400 (why?)
|
html_content = '' # live always returns 400 (why?)
|
||||||
#self.title = match1(html_content,
|
#self.title = match1(html_content,
|
||||||
# r'<h1 title="([^"]+)"')
|
# r'<h1 title="([^"]+)"')
|
||||||
|
if(html_content.find("视频去哪了呢?_哔哩哔哩 ")>0):
|
||||||
|
print("哔哩哔哩视频不存在!(Video not found !)URL:%s"%self.url)
|
||||||
|
return
|
||||||
# redirect: watchlater
|
# redirect: watchlater
|
||||||
if re.match(r'https?://(www\.)?bilibili\.com/watchlater/#/(av(\d+)|BV(\S+)/?)', self.url):
|
if re.match(r'https?://(www\.)?bilibili\.com/watchlater/#/(av(\d+)|BV(\S+)/?)', self.url):
|
||||||
avid = match1(self.url, r'/(av\d+)') or match1(self.url, r'/(BV\w+)')
|
avid = match1(self.url, r'/(av\d+)') or match1(self.url, r'/(BV\w+)')
|
||||||
|
Loading…
Reference in New Issue
Block a user