aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/yt_dlp_plugins/extractor
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2024-08-05 09:43:48 +0100
committergarret <garret@airmail.cc>2024-08-05 09:48:30 +0100
commit340b1a5bf6697bb28d533a264ad9fa03982bcf44 (patch)
tree58e020ba422620e09f7f24b31e5a3e2060baff2d /yt_dlp_plugins/extractor
parente8c42021467cb23eade6982a97bf161415b5a4ec (diff)
downloadyt-dlp-rajiko-340b1a5bf6697bb28d533a264ad9fa03982bcf44.tar.gz
yt-dlp-rajiko-340b1a5bf6697bb28d533a264ad9fa03982bcf44.tar.bz2
yt-dlp-rajiko-340b1a5bf6697bb28d533a264ad9fa03982bcf44.zip
add tests for RadikoPersonIE
Diffstat (limited to 'yt_dlp_plugins/extractor')
-rw-r--r--yt_dlp_plugins/extractor/radiko.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py
index 85a17c8..12db23b 100644
--- a/yt_dlp_plugins/extractor/radiko.py
+++ b/yt_dlp_plugins/extractor/radiko.py
@@ -685,6 +685,20 @@ class RadikoStationButtonIE(InfoExtractor):
class RadikoPersonIE(InfoExtractor):
_VALID_URL = r"https?://(?:www\.)?radiko\.jp/persons/(?P<id>\d+)"
+ _TESTS = [{
+ "url": "https://radiko.jp/persons/11421",
+ "playlist_mincount": 10,
+ "info_dict": {
+ "id": "person-11421",
+ },
+ },{
+ "url": "https://radiko.jp/persons/11421",
+ "params": {'extractor_args': {'rajiko': {'key_station_only': ['']}}},
+ "playlist_count": 1,
+ "info_dict": {
+ "id": "person-11421",
+ },
+ }]
def _real_extract(self, url):
person_id = self._match_id(url)