From 536a24bb3148b459ac01eed0ea83442f3f8fcbec Mon Sep 17 00:00:00 2001 From: garret Date: Tue, 30 May 2023 01:00:01 +0100 Subject: store all cache in one place this means it cant see the old tokens who cares, they expire in an hour --- yt_dlp_plugins/extractor/radiko.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yt_dlp_plugins/extractor') diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 5f48c2b..4dd050e 100755 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -474,11 +474,11 @@ class _RadikoBaseIE(InfoExtractor): } self._user = headers["X-Radiko-User"] - self.cache.store("rajiko-tokens", station_region, {"token": token, "user": self._user}) + self.cache.store("rajiko", station_region, {"token": token, "user": self._user}) return token def _auth(self, station_region): - cachedata = self.cache.load("rajiko-tokens", station_region) + cachedata = self.cache.load("rajiko", station_region) self.write_debug(cachedata) if cachedata is not None: token = cachedata.get("token") -- cgit v1.2.3-70-g09d2