aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-10-01 18:08:02 +0100
committergarret <garret@airmail.cc>2023-10-01 18:43:20 +0100
commit797ffcbc8b87ba8e135865d7e481d9bdcd41fe5b (patch)
tree54f974f624873c56e5ca4717d150316d53a31505
parentcb0e113e48651d085a3b36c2a3476a0bf70099bc (diff)
downloadyt-dlp-rajiko-797ffcbc8b87ba8e135865d7e481d9bdcd41fe5b.tar.gz
yt-dlp-rajiko-797ffcbc8b87ba8e135865d7e481d9bdcd41fe5b.tar.bz2
yt-dlp-rajiko-797ffcbc8b87ba8e135865d7e481d9bdcd41fe5b.zip
add extractor arg for stream device
closes #17
-rwxr-xr-xyt_dlp_plugins/extractor/radiko.py6
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 = []