diff options
author | garret1317 <garret@airmail.cc> | 2025-06-01 12:12:42 +0100 |
---|---|---|
committer | garret1317 <garret@airmail.cc> | 2025-06-01 15:57:26 +0100 |
commit | bc161b9a04a735ac43dc44bccbd6e4d5639ab2bd (patch) | |
tree | 86ae564ff2e82e650b40a0fae9f73b77067b9073 /yt_dlp_plugins/extractor/radiko.py | |
parent | 543de39a20b8a4c19baf468e0a4946a4610d30de (diff) | |
download | yt-dlp-rajiko-bc161b9a04a735ac43dc44bccbd6e4d5639ab2bd.tar.gz yt-dlp-rajiko-bc161b9a04a735ac43dc44bccbd6e4d5639ab2bd.tar.bz2 yt-dlp-rajiko-bc161b9a04a735ac43dc44bccbd6e4d5639ab2bd.zip |
set device to pc_html5 for live as well
aSmartPhone7a removed working stream
Diffstat (limited to 'yt_dlp_plugins/extractor/radiko.py')
-rw-r--r-- | yt_dlp_plugins/extractor/radiko.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index b9bb056..f58e744 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -240,10 +240,10 @@ class _RadikoBaseIE(InfoExtractor): self.to_screen(f"{station_id}: Using cached station metadata") return cachedata.get("meta") - def _get_station_formats(self, station, timefree, auth_data, start_at=None, end_at=None, tf30_override=False): + def _get_station_formats(self, station, timefree, auth_data, start_at=None, end_at=None, use_pc_html5=False): config_device = traverse_obj(self._configuration_arg('device', casesense=True, ie_key="rajiko"), 0) - if not tf30_override: + if not use_pc_html5: device = config_device or "aSmartPhone7a" # this device only gives us the on-demand one for timefree # that's good imo - we just get the one that works, and don't bother with probing the rest as well else: @@ -398,7 +398,7 @@ class RadikoLiveIE(_RadikoBaseIE): region = self._get_station_region(station) station_meta = self._get_station_meta(region, station) auth_data = self._auth(region) - formats = self._get_station_formats(station, False, auth_data) + formats = self._get_station_formats(station, False, auth_data, use_pc_html5=True) return { "is_live": True, @@ -577,7 +577,7 @@ class RadikoTimeFreeIE(_RadikoBaseIE): station_meta = self._get_station_meta(region, station) chapters = self._extract_chapters(station, start, end, video_id=meta["id"]) auth_data = self._auth(region, need_tf30=need_tf30) - formats = self._get_station_formats(station, True, auth_data, start_at=start, end_at=end, tf30_override=need_tf30) + formats = self._get_station_formats(station, True, auth_data, start_at=start, end_at=end, use_pc_html5=need_tf30) return { **station_meta, |