0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-10 00:25:06 +00:00

[extractor/BiliLive] Fix extractor

- Remove unnecessary group in `_VALID_URL`
- This extractor always returns livestreams
This commit is contained in:
Lesmiscore 2022-12-30 03:01:22 +09:00
parent c1edb853b0
commit ca2f6e14e6
No known key found for this signature in database
GPG key ID: 0EC2B52CF86236FF

View file

@ -1034,7 +1034,7 @@ def _real_extract(self, url):
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 @@ def _real_extract(self, url):
'thumbnail': room_data.get('user_cover'),
'timestamp': stream_data.get('live_time'),
'formats': formats,
'is_live': True,
'http_headers': {
'Referer': url,
},