From 3c535cbc5f47890378cca5942e4580e4c41c10c3 Mon Sep 17 00:00:00 2001
From: garret <garret@airmail.cc>
Date: Mon, 19 Jun 2023 05:37:54 +0100
Subject: loop through search results the old-fashioned way

not smort enough for traverse_obj
---
 yt_dlp_plugins/extractor/radiko.py | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py
index fd9320d..9aac5f7 100755
--- a/yt_dlp_plugins/extractor/radiko.py
+++ b/yt_dlp_plugins/extractor/radiko.py
@@ -849,11 +849,7 @@ class RadikoSearchIE(_RadikoBaseIE):
 			"app_id": "pc",
 		})
 		data = self._download_json(search_url, None)
-
-		results = traverse_obj(data, ("data", ..., {
-			"station": "station_id",
-			"time": ("start_time", {self._strip_date})
-		}))
+		results = [(i.get("station_id"), self._strip_date(i.get("start_time"))) for i in data.get("data")]
 
 		key = traverse_obj(queries, ("key", 0))
 		day = traverse_obj(queries, ('start_day', 0)) or "all"
@@ -867,8 +863,7 @@ class RadikoSearchIE(_RadikoBaseIE):
 			"title": traverse_obj(queries, ("key", 0)),
 			"id": playlist_id,
 			"entries": [self.url_result(f"https://radiko.jp/#!/ts/{station}/{time}", RadikoTimeFreeIE)
-				for station, time in [ep.values() for ep in results]]
-				# TODO: have traverse_obj return a tuple, not a dict
+				for station, time in results]
 		}
 
 class RadikoShareIE(_RadikoBaseIE):
-- 
cgit v1.2.3-70-g09d2