mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-26 09:11:58 +02:00
[extractor/ximalaya] Update album _VALID_URL
(#6110)
Authored by: carusocr Closes #6059
This commit is contained in:
parent
b3eaab7ca2
commit
417cdaae08
@ -36,7 +36,7 @@ class XimalayaIE(XimalayaBaseIE):
|
|||||||
'height': 180
|
'height': 180
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
'categories': ['人文'],
|
'categories': ['其他'],
|
||||||
'duration': 93,
|
'duration': 93,
|
||||||
'view_count': int,
|
'view_count': int,
|
||||||
'like_count': int,
|
'like_count': int,
|
||||||
@ -123,7 +123,7 @@ def _real_extract(self, url):
|
|||||||
class XimalayaAlbumIE(XimalayaBaseIE):
|
class XimalayaAlbumIE(XimalayaBaseIE):
|
||||||
IE_NAME = 'ximalaya:album'
|
IE_NAME = 'ximalaya:album'
|
||||||
IE_DESC = '喜马拉雅FM 专辑'
|
IE_DESC = '喜马拉雅FM 专辑'
|
||||||
_VALID_URL = r'https?://(?:www\.|m\.)?ximalaya\.com/\d+/album/(?P<id>[0-9]+)'
|
_VALID_URL = r'https?://(?:www\.|m\.)?ximalaya\.com/(?:\d+/)?album/(?P<id>[0-9]+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'http://www.ximalaya.com/61425525/album/5534601/',
|
'url': 'http://www.ximalaya.com/61425525/album/5534601/',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -131,6 +131,13 @@ class XimalayaAlbumIE(XimalayaBaseIE):
|
|||||||
'id': '5534601',
|
'id': '5534601',
|
||||||
},
|
},
|
||||||
'playlist_mincount': 323,
|
'playlist_mincount': 323,
|
||||||
|
}, {
|
||||||
|
'url': 'https://www.ximalaya.com/album/6912905',
|
||||||
|
'info_dict': {
|
||||||
|
'title': '埃克哈特《修炼当下的力量》',
|
||||||
|
'id': '6912905',
|
||||||
|
},
|
||||||
|
'playlist_mincount': 41,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
Reference in New Issue
Block a user