From 28701271aeb9d6796e89abb8d5d4ac054fb2dcf0 Mon Sep 17 00:00:00 2001 From: garret Date: Tue, 26 Sep 2023 16:03:49 +0100 Subject: fix id for station info download --- yt_dlp_plugins/extractor/radiko.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yt_dlp_plugins/extractor/radiko.py') diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 6852453..dd0c380 100755 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -505,7 +505,7 @@ class _RadikoBaseIE(InfoExtractor): cachedata = self.cache.load("rajiko", station_id) now = datetime.datetime.now() if cachedata is None or cachedata.get("expiry") < now.timestamp(): - region = self._download_xml(f"https://radiko.jp/v3/station/list/{region}.xml", region, + region = self._download_xml(f"https://radiko.jp/v3/station/list/{region}.xml", station_id, note="Downloading station metadata") station = region.find(f'.//station/id[.="{station_id}"]/..') # a with an of our station_id station_name = station.find("name").text -- cgit v1.2.3-70-g09d2