aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/radiko.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-06-23 09:44:22 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-06-23 09:57:26 +0530
commit9809740ba5cc5daf53e690d104a37aa6545e53f9 (patch)
tree77a43dca6247d0ce1045cd81ad1b0c774028e9ff /yt_dlp/extractor/radiko.py
parentf67baae17e76997c13d35f65f50be633106837e0 (diff)
downloadhypervideo-pre-9809740ba5cc5daf53e690d104a37aa6545e53f9.tar.lz
hypervideo-pre-9809740ba5cc5daf53e690d104a37aa6545e53f9.tar.xz
hypervideo-pre-9809740ba5cc5daf53e690d104a37aa6545e53f9.zip
[extractor, cleanup] Reduce direct use of `_downloader`
Diffstat (limited to 'yt_dlp/extractor/radiko.py')
-rw-r--r--yt_dlp/extractor/radiko.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/radiko.py b/yt_dlp/extractor/radiko.py
index dbb748715..498cc6be9 100644
--- a/yt_dlp/extractor/radiko.py
+++ b/yt_dlp/extractor/radiko.py
@@ -43,7 +43,7 @@ class RadikoBaseIE(InfoExtractor):
}).split(',')[0]
auth_data = (auth_token, area_id)
- self._downloader.cache.store('radiko', 'auth_data', auth_data)
+ self.cache.store('radiko', 'auth_data', auth_data)
return auth_data
def _extract_full_key(self):
@@ -150,7 +150,7 @@ class RadikoIE(RadikoBaseIE):
vid_int = unified_timestamp(video_id, False)
prog, station_program, ft, radio_begin, radio_end = self._find_program(video_id, station, vid_int)
- auth_cache = self._downloader.cache.load('radiko', 'auth_data')
+ auth_cache = self.cache.load('radiko', 'auth_data')
for attempt in range(2):
auth_token, area_id = (not attempt and auth_cache) or self._auth_client()
formats = self._extract_formats(