Skip to content

Commit

Permalink
store all cache in one place
Browse files Browse the repository at this point in the history
this means it cant see the old tokens
who cares, they expire in an hour
  • Loading branch information
garret1317 committed May 30, 2023
1 parent 06bf827 commit 536a24b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt_dlp_plugins/extractor/radiko.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,11 +474,11 @@ def _negotiate_token(self, station_region):
}

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")
Expand Down

0 comments on commit 536a24b

Please sign in to comment.