diff --git a/src/you_get/extractors/bilibili.py b/src/you_get/extractors/bilibili.py index 73f82817..1dc7438c 100644 --- a/src/you_get/extractors/bilibili.py +++ b/src/you_get/extractors/bilibili.py @@ -123,13 +123,17 @@ class Bilibili(VideoExtractor): self.url = 'http://www.bilibili.com/video/av{}/index_{}.html'.format(aid, page) self.referer = self.url self.page = get_content(self.url) - try: - self.title = re.search(r'', self.page) + if m is not None: + self.title = m.group(1) + if 'subtitle' in kwargs: + subtitle = kwargs['subtitle'] + self.title = '{} {}'.format(self.title, subtitle) if 'bangumi.bilibili.com/movie' in self.url: self.movie_entry(**kwargs)