[extractor/bilibili] Improve _VALID_URL (#5820)

Authored by: skbeh
This commit is contained in:
skbeh 2022-12-24 18:47:37 +08:00 committed by GitHub
parent 8791e78ccc
commit 1c226ccdd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1034,7 +1034,7 @@ class BiliIntlSeriesIE(BiliIntlBaseIE):
class BiliLiveIE(InfoExtractor):
_VALID_URL = r'https?://live.bilibili.com/(?P<id>\d+)'
_VALID_URL = r'https?://live.bilibili.com/(blanc/)?(?P<id>\d+)'
_TESTS = [{
'url': 'https://live.bilibili.com/196',
@ -1050,6 +1050,9 @@ class BiliLiveIE(InfoExtractor):
}, {
'url': 'https://live.bilibili.com/196?broadcast_type=0&is_room_feed=1?spm_id_from=333.999.space_home.strengthen_live_card.click',
'only_matching': True
}, {
'url': 'https://live.bilibili.com/blanc/196',
'only_matching': True
}]
_FORMATS = {