[extractor/bilibili] Improve `_VALID_URL` (#5820)

Authored by: skbeh
pull/5878/head
skbeh 2 years ago committed by GitHub
parent 8791e78ccc
commit 1c226ccdd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 = {

Loading…
Cancel
Save