diff options
author | garret <garret@airmail.cc> | 2023-09-26 16:03:49 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2023-09-26 16:03:49 +0100 |
commit | 28701271aeb9d6796e89abb8d5d4ac054fb2dcf0 (patch) | |
tree | ba5fd57e38141c0615126d58a1f8a7ae7288dc7a /yt_dlp_plugins/extractor/radiko.py | |
parent | 037b824cb1644a65f8b67e1300700df689ea1a99 (diff) | |
download | yt-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/radiko.py')
-rwxr-xr-x | yt_dlp_plugins/extractor/radiko.py | 2 |
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 |