diff options
author | skbeh <60107333+skbeh@users.noreply.github.com> | 2022-12-24 18:47:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-24 16:17:37 +0530 |
commit | 1c226ccdd464c09218a33824aedbcf3aa305a678 (patch) | |
tree | 184c81692daa650974a38be8942692aebb423a8c | |
parent | 8791e78cccd68db8161f06dc8567280e0d99a5e1 (diff) | |
download | hypervideo-pre-1c226ccdd464c09218a33824aedbcf3aa305a678.tar.lz hypervideo-pre-1c226ccdd464c09218a33824aedbcf3aa305a678.tar.xz hypervideo-pre-1c226ccdd464c09218a33824aedbcf3aa305a678.zip |
[extractor/bilibili] Improve `_VALID_URL` (#5820)
Authored by: skbeh
-rw-r--r-- | yt_dlp/extractor/bilibili.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/bilibili.py b/yt_dlp/extractor/bilibili.py index bc0424194..616a54960 100644 --- a/yt_dlp/extractor/bilibili.py +++ b/yt_dlp/extractor/bilibili.py @@ -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 = { |