diff options
author | garret1317 <garret@airmail.cc> | 2025-09-11 18:14:59 +0100 |
---|---|---|
committer | garret1317 <garret@airmail.cc> | 2025-09-11 18:14:59 +0100 |
commit | 3d8d8b1cb6e3a7792077b413d705c8337ae9c014 (patch) | |
tree | dad325b7c8761cb8cccfafce40ece9fc8c86719c /yt_dlp_plugins/extractor | |
parent | 205bcb84e106126fedf419ab869c68bbee739441 (diff) | |
download | yt-dlp-rajiko-3d8d8b1cb6e3a7792077b413d705c8337ae9c014.tar.gz yt-dlp-rajiko-3d8d8b1cb6e3a7792077b413d705c8337ae9c014.tar.bz2 yt-dlp-rajiko-3d8d8b1cb6e3a7792077b413d705c8337ae9c014.zip |
Don't return any formats when we don't actually have any
Diffstat (limited to 'yt_dlp_plugins/extractor')
-rw-r--r-- | yt_dlp_plugins/extractor/radiko.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index d387a79..ae0ee49 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -542,9 +542,13 @@ class RadikoTimeFreeIE(_RadikoBaseIE): region = self._get_station_region(station) 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, use_pc_html5=need_tf30) + if live_status == "was_live": + 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, use_pc_html5=need_tf30) + else: + chapters = None + formats = None return { **station_meta, |