From 797ffcbc8b87ba8e135865d7e481d9bdcd41fe5b Mon Sep 17 00:00:00 2001 From: garret Date: Sun, 1 Oct 2023 18:08:02 +0100 Subject: add extractor arg for stream device closes #17 --- yt_dlp_plugins/extractor/radiko.py | 6 +++--- 1 file 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 = [] -- cgit v1.2.3-70-g09d2