aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-05-30 01:00:01 +0100
committergarret <garret@airmail.cc>2023-05-30 01:00:01 +0100
commit536a24bb3148b459ac01eed0ea83442f3f8fcbec (patch)
treec0765acc5cba2cad9d233a76196ca96956b0ed5f
parent06bf827ebc3249b8fce02f5ad36dca0daa8576f1 (diff)
downloadyt-dlp-rajiko-536a24bb3148b459ac01eed0ea83442f3f8fcbec.tar.gz
yt-dlp-rajiko-536a24bb3148b459ac01eed0ea83442f3f8fcbec.tar.bz2
yt-dlp-rajiko-536a24bb3148b459ac01eed0ea83442f3f8fcbec.zip
store all cache in one place
this means it cant see the old tokens who cares, they expire in an hour
-rwxr-xr-xyt_dlp_plugins/extractor/radiko.py4
1 files changed, 2 insertions, 2 deletions
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")