diff options
author | garret <garret@airmail.cc> | 2023-10-01 18:08:02 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2023-10-01 18:43:20 +0100 |
commit | 797ffcbc8b87ba8e135865d7e481d9bdcd41fe5b (patch) | |
tree | 54f974f624873c56e5ca4717d150316d53a31505 /yt_dlp_plugins/extractor/radiko.py | |
parent | cb0e113e48651d085a3b36c2a3476a0bf70099bc (diff) | |
download | yt-dlp-rajiko-797ffcbc8b87ba8e135865d7e481d9bdcd41fe5b.tar.gz yt-dlp-rajiko-797ffcbc8b87ba8e135865d7e481d9bdcd41fe5b.tar.bz2 yt-dlp-rajiko-797ffcbc8b87ba8e135865d7e481d9bdcd41fe5b.zip |
add extractor arg for stream device
closes #17
Diffstat (limited to 'yt_dlp_plugins/extractor/radiko.py')
-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 = [] |