aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/yt_dlp_plugins/extractor
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-09-26 16:03:49 +0100
committergarret <garret@airmail.cc>2023-09-26 16:03:49 +0100
commit28701271aeb9d6796e89abb8d5d4ac054fb2dcf0 (patch)
treeba5fd57e38141c0615126d58a1f8a7ae7288dc7a /yt_dlp_plugins/extractor
parent037b824cb1644a65f8b67e1300700df689ea1a99 (diff)
downloadyt-dlp-rajiko-28701271aeb9d6796e89abb8d5d4ac054fb2dcf0.tar.gz
yt-dlp-rajiko-28701271aeb9d6796e89abb8d5d4ac054fb2dcf0.tar.bz2
yt-dlp-rajiko-28701271aeb9d6796e89abb8d5d4ac054fb2dcf0.zip
fix id for station info download
Diffstat (limited to 'yt_dlp_plugins/extractor')
-rwxr-xr-xyt_dlp_plugins/extractor/radiko.py2
1 files changed, 1 insertions, 1 deletions
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 <station> with an <id> of our station_id
station_name = station.find("name").text