mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-27 21:59:17 +01:00
[extractor/BiliLive] Fix extractor
- Remove unnecessary group in `_VALID_URL` - This extractor always returns livestreams
This commit is contained in:
parent
c1edb853b0
commit
ca2f6e14e6
1 changed files with 2 additions and 1 deletions
|
@ -1034,7 +1034,7 @@ class BiliIntlSeriesIE(BiliIntlBaseIE):
|
|||
|
||||
|
||||
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 = [{
|
||||
'url': 'https://live.bilibili.com/196',
|
||||
|
@ -1114,6 +1114,7 @@ class BiliLiveIE(InfoExtractor):
|
|||
'thumbnail': room_data.get('user_cover'),
|
||||
'timestamp': stream_data.get('live_time'),
|
||||
'formats': formats,
|
||||
'is_live': True,
|
||||
'http_headers': {
|
||||
'Referer': url,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue