add Bilibili Video not found

增加 B站视频找不到情况的提示
This commit is contained in:
nilm 2020-04-14 12:40:32 +08:00
parent 76d35fb2c6
commit b2217e5b95

View File

@ -136,7 +136,9 @@ class Bilibili(VideoExtractor):
html_content = '' # live always returns 400 (why?)
#self.title = match1(html_content,
# r'<h1 title="([^"]+)"')
if(html_content.find("视频去哪了呢_哔哩哔哩 ")>0):
print("哔哩哔哩视频不存在Video not found URL:%s"%self.url)
return
# redirect: watchlater
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+)')