diff options
-rwxr-xr-x | yt_dlp_plugins/extractor/radiko.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 656fefc..a67a06f 100755 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -527,9 +527,9 @@ class _RadikoBaseIE(InfoExtractor): return cachedata.get("meta") def _get_station_formats(self, station, timefree, auth_data, start_at=None, end_at=None): - # smartphone formats api = always happy path - url_data = self._download_xml(f"https://radiko.jp/v3/station/stream/aSmartPhone7a/{station}.xml", - station, note="Downloading stream information") + device = self._configuration_arg('device', ['aSmartPhone7a'], casesense=True)[0] # aSmartPhone7a formats = always happy path + url_data = self._download_xml(f"https://radiko.jp/v3/station/stream/{device}/{station}.xml", + station, note=f"Downloading {device} stream information") seen_urls = [] formats = [] |