mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-04-03 19:01:08 +02:00
stop using codespaces
modified: yt_dlp/extractor/_extractors.py modified: yt_dlp/extractor/bilibili.py
This commit is contained in:
parent
a8520244b8
commit
f40c4b4ee2
yt_dlp/extractor
@ -255,6 +255,7 @@ from .bilibili import (
|
|||||||
BiliBiliPlayerIE,
|
BiliBiliPlayerIE,
|
||||||
BilibiliPlaylistIE,
|
BilibiliPlaylistIE,
|
||||||
BiliBiliSearchIE,
|
BiliBiliSearchIE,
|
||||||
|
BiliBiliSearchPageIE,
|
||||||
BilibiliSeriesListIE,
|
BilibiliSeriesListIE,
|
||||||
BilibiliSpaceAudioIE,
|
BilibiliSpaceAudioIE,
|
||||||
BilibiliSpaceVideoIE,
|
BilibiliSpaceVideoIE,
|
||||||
|
@ -2233,3 +2233,22 @@ class BiliLiveIE(InfoExtractor):
|
|||||||
'Referer': url,
|
'Referer': url,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class BiliBiliSearchPageIE(BilibiliBaseIE):
|
||||||
|
_VALID_URL = r'https?://search\.bilibili\.com/(?:all|bangumi)/?\?keyword=(?P<id>[^/?#&]+)'
|
||||||
|
_TESTS = [{
|
||||||
|
'url': r'https://search.bilibili.com/all?keyword=yt+-+dlp+%E4%B8%8B%E8%BD%BD%E5%99%A8',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'None',
|
||||||
|
'title': 'None',
|
||||||
|
'ext': 'None',
|
||||||
|
},
|
||||||
|
}]
|
||||||
|
|
||||||
|
def _real_extract(self, url):
|
||||||
|
# video_id = self._match_id(url)
|
||||||
|
# webpage = self._download_webpage(url, video_id=video_id)
|
||||||
|
# title = self._search_regex(r'(?s)<title\b[^>]*>([^<]+)-哔哩哔哩_bilibili', webpage, 'uploader', fatal=False)
|
||||||
|
return self.url_result(r'https://www.bilibili.com/video/BV1yt4y1Q7SS/',
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user