mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-28 22:24:34 +01:00
_TEST
-> _TESTS
This commit is contained in:
parent
0e1851bc34
commit
aa34d34596
1 changed files with 4 additions and 4 deletions
|
@ -1727,7 +1727,7 @@ class BilibiliAudioBaseIE(InfoExtractor):
|
||||||
|
|
||||||
class BilibiliAudioIE(BilibiliAudioBaseIE):
|
class BilibiliAudioIE(BilibiliAudioBaseIE):
|
||||||
_VALID_URL = r'https?://(?:www\.)?bilibili\.com/audio/au(?P<id>\d+)'
|
_VALID_URL = r'https?://(?:www\.)?bilibili\.com/audio/au(?P<id>\d+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'https://www.bilibili.com/audio/au1003142',
|
'url': 'https://www.bilibili.com/audio/au1003142',
|
||||||
'md5': 'fec4987014ec94ef9e666d4d158ad03b',
|
'md5': 'fec4987014ec94ef9e666d4d158ad03b',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
|
@ -1749,7 +1749,7 @@ class BilibiliAudioIE(BilibiliAudioBaseIE):
|
||||||
'uploader': 'tsukimi-つきみぐー',
|
'uploader': 'tsukimi-つきみぐー',
|
||||||
'view_count': int,
|
'view_count': int,
|
||||||
},
|
},
|
||||||
}
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
au_id = self._match_id(url)
|
au_id = self._match_id(url)
|
||||||
|
@ -1797,7 +1797,7 @@ class BilibiliAudioIE(BilibiliAudioBaseIE):
|
||||||
|
|
||||||
class BilibiliAudioAlbumIE(BilibiliAudioBaseIE):
|
class BilibiliAudioAlbumIE(BilibiliAudioBaseIE):
|
||||||
_VALID_URL = r'https?://(?:www\.)?bilibili\.com/audio/am(?P<id>\d+)'
|
_VALID_URL = r'https?://(?:www\.)?bilibili\.com/audio/am(?P<id>\d+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'https://www.bilibili.com/audio/am10624',
|
'url': 'https://www.bilibili.com/audio/am10624',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '10624',
|
'id': '10624',
|
||||||
|
@ -1805,7 +1805,7 @@ class BilibiliAudioAlbumIE(BilibiliAudioBaseIE):
|
||||||
'description': '每天11:00更新,为你推送最新音乐',
|
'description': '每天11:00更新,为你推送最新音乐',
|
||||||
},
|
},
|
||||||
'playlist_count': 19,
|
'playlist_count': 19,
|
||||||
}
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
am_id = self._match_id(url)
|
am_id = self._match_id(url)
|
||||||
|
|
Loading…
Reference in a new issue