From 340b1a5bf6697bb28d533a264ad9fa03982bcf44 Mon Sep 17 00:00:00 2001 From: garret Date: Mon, 5 Aug 2024 09:43:48 +0100 Subject: add tests for RadikoPersonIE --- yt_dlp_plugins/extractor/radiko.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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\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) -- cgit v1.2.3-70-g09d2