[extractor/BiliLive] Fix extractor

- Remove unnecessary group in `_VALID_URL`
- This extractor always returns livestreams
pull/5732/merge
Lesmiscore 2 years ago
parent c1edb853b0
commit ca2f6e14e6
No known key found for this signature in database
GPG Key ID: 0EC2B52CF86236FF

@ -1034,7 +1034,7 @@ class BiliIntlSeriesIE(BiliIntlBaseIE):
class BiliLiveIE(InfoExtractor): class BiliLiveIE(InfoExtractor):
_VALID_URL = r'https?://live.bilibili.com/(blanc/)?(?P<id>\d+)' _VALID_URL = r'https?://live.bilibili.com/(?:blanc/)?(?P<id>\d+)'
_TESTS = [{ _TESTS = [{
'url': 'https://live.bilibili.com/196', 'url': 'https://live.bilibili.com/196',
@ -1114,6 +1114,7 @@ class BiliLiveIE(InfoExtractor):
'thumbnail': room_data.get('user_cover'), 'thumbnail': room_data.get('user_cover'),
'timestamp': stream_data.get('live_time'), 'timestamp': stream_data.get('live_time'),
'formats': formats, 'formats': formats,
'is_live': True,
'http_headers': { 'http_headers': {
'Referer': url, 'Referer': url,
}, },

Loading…
Cancel
Save