add Bilibili Video not found

增加 B站视频找不到情况的提示
This commit is contained in:
nilm 2020-04-14 12:41:03 +08:00
parent b2217e5b95
commit 1423c00119

View File

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