aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/yt_dlp_plugins
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-06-13 03:14:26 +0100
committergarret <garret@airmail.cc>2023-06-13 03:14:41 +0100
commitcaf29821bb3e993f3280501ce57002de1b243483 (patch)
tree53e553ee762f9f9cf30489e747dc97e8a05755ac /yt_dlp_plugins
parent2af9c6a823b8533cd5760e97b7f237997c12300e (diff)
downloadyt-dlp-rajiko-caf29821bb3e993f3280501ce57002de1b243483.tar.gz
yt-dlp-rajiko-caf29821bb3e993f3280501ce57002de1b243483.tar.bz2
yt-dlp-rajiko-caf29821bb3e993f3280501ce57002de1b243483.zip
add SearchIE tests
Diffstat (limited to 'yt_dlp_plugins')
-rwxr-xr-xyt_dlp_plugins/extractor/radiko.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py
index 1150531..ead6cae 100755
--- a/yt_dlp_plugins/extractor/radiko.py
+++ b/yt_dlp_plugins/extractor/radiko.py
@@ -809,6 +809,31 @@ class RadikoTimeFreeIE(_RadikoBaseIE):
class RadikoSearchIE(_RadikoBaseIE):
_VALID_URL = r"https?://(?:www\.)?radiko\.jp/#!/search/(?:timeshift|live|history)\?"
+ _TESTS = [{
+ # past, specific area
+ 'url': 'https://radiko.jp/#!/search/live?key=city%20chill%20club&filter=past&start_day=&end_day=&region_id=&area_id=JP13&cul_area_id=JP13&page_idx=0',
+ 'playlist_mincount': 4,
+ 'info_dict': {
+ 'id': "city chill club-past-all-JP13",
+ 'title': "city chill club",
+ }
+ }, {
+ # all, specific day
+ "url": "https://radiko.jp/#!/search/live?key=CIAO%20765(7%E6%99%82%E5%8F%B0)&filter=&start_day=2023-06-12&end_day=2023-06-12&region_id=all&area_id=JP13&cul_area_id=JP13&page_idx=0",
+ "playlist_mincount": 1,
+ "info_dict": {
+ "id": "CIAO 765(7時台)-all-2023-06-12-all",
+ "title": "CIAO 765(7時台)",
+ }
+ }, {
+ # all, live/future
+ "url": "https://radiko.jp/#!/search/live?key=%EF%BC%AE%EF%BC%A8%EF%BC%AB%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9&filter=future&start_day=&end_day=&region_id=all&area_id=JP13&cul_area_id=JP13&page_idx=0",
+ "playlist_mincount": 8,
+ "info_dict": {
+ "id": "NHKニュース-future-all-all",
+ "title": "NHKニュース",
+ },
+ }]
def _strip_date(self, date):
return date.replace(" ", "").replace("-", "").replace(":", "")