未验证 提交 4f1b609d 编写于 作者: M Mort Yao

[bilibili] fix title

上级 bcc98c5a
......@@ -130,6 +130,9 @@ class Bilibili(VideoExtractor):
m = re.search(r'<h1.*?>(.*?)</h1>', self.page) or re.search(r'<h1 title="([^"]+)">', self.page)
if m is not None:
self.title = m.group(1)
s = re.search(r'<span>([^<]+)</span>', m.group(1))
if s:
self.title = unescape_html(s.group(1))
if self.title is None:
m = re.search(r'property="og:title" content="([^"]+)"', self.page)
if m is not None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册