Compare commits

..

No commits in common. "0f5aa10fa0589b3c43e6dd751b1332365077fa98" and "34df421bb16335e6a1a68839da6b31b7a0e5fb5a" have entirely different histories.

View File

@ -223,7 +223,6 @@ class BilibiliBaseIE(InfoExtractor):
class BiliBiliIE(BilibiliBaseIE): class BiliBiliIE(BilibiliBaseIE):
_VALID_URL = r'https?://(?:www\.)?bilibili\.com/(?:video/|festival/\w+\?(?:[^#]*&)?bvid=)[aAbB][vV](?P<id>[^/?#&]+)' _VALID_URL = r'https?://(?:www\.)?bilibili\.com/(?:video/|festival/\w+\?(?:[^#]*&)?bvid=)[aAbB][vV](?P<id>[^/?#&]+)'
_TESTS = [{ _TESTS = [{
'url': 'https://www.bilibili.com/video/BV13x41117TL', 'url': 'https://www.bilibili.com/video/BV13x41117TL',
'info_dict': { 'info_dict': {
@ -1922,11 +1921,9 @@ class BiliIntlIE(BiliIntlBaseIE):
# XXX: webpage metadata may not accurate, it just used to not crash when video_data not found # XXX: webpage metadata may not accurate, it just used to not crash when video_data not found
return merge_dicts( return merge_dicts(
self._parse_video_metadata(video_data), { self._parse_video_metadata(video_data), {
'title': get_element_by_class( 'title': get_element_by_class('bstar-meta__title', webpage),
'bstar-meta__title', webpage) or self._html_search_meta('og:title', webpage), 'description': get_element_by_class('bstar-meta__desc', webpage),
'description': get_element_by_class( })
'bstar-meta__desc', webpage) or self._html_search_meta('og:description'),
} or self._search_json_ld(webpage, video_id, fatal=False))
def _get_comments_reply(self, root_id, next_id=0, display_id=None): def _get_comments_reply(self, root_id, next_id=0, display_id=None):
comment_api_raw_data = self._download_json( comment_api_raw_data = self._download_json(