diff options
Diffstat (limited to 'yt_dlp_plugins')
-rwxr-xr-x | yt_dlp_plugins/extractor/radiko.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 7ac4aee..31d12a5 100755 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -428,7 +428,10 @@ class _RadikoBaseIE(InfoExtractor): return info def _get_station_region(self, station): - regions = self.cache.load('rajiko', 'region_index') or self._index_regions() + regions = self.cache.load('rajiko', 'region_index') + if regions is None or station not in regions: + regions = self._index_regions() + return regions[station] def _negotiate_token(self, station_region): |