diff options
author | garret <garret@airmail.cc> | 2024-07-09 20:47:04 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2024-07-09 20:47:04 +0100 |
commit | 39138d1a08d7398aa459cae85d52d86c839278d0 (patch) | |
tree | 670abaf6d25b71b632d6e1d123f83fe602f20e85 /yt_dlp_plugins | |
parent | ca0c6c9652dc695825f670546bf2b002f09b886e (diff) | |
download | yt-dlp-rajiko-39138d1a08d7398aa459cae85d52d86c839278d0.tar.gz yt-dlp-rajiko-39138d1a08d7398aa459cae85d52d86c839278d0.tar.bz2 yt-dlp-rajiko-39138d1a08d7398aa459cae85d52d86c839278d0.zip |
format some dicts a bit nicer
Diffstat (limited to 'yt_dlp_plugins')
-rw-r--r-- | yt_dlp_plugins/extractor/radiko.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 60397f5..72d1402 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -182,7 +182,10 @@ class _RadikoBaseIE(InfoExtractor): self._user = headers["X-Radiko-User"] if not region_mismatch: - self.cache.store("rajiko", 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): @@ -223,7 +226,9 @@ class _RadikoBaseIE(InfoExtractor): "thumbnail": url_or_none(station.find("banner").text), } self.cache.store("rajiko", station_id, { - "expiry": (now + datetime.timedelta(days=1)).timestamp(), "meta": meta}) + "expiry": (now + datetime.timedelta(days=1)).timestamp(), + "meta": meta + }) return meta else: self.to_screen(f"{station_id}: Using cached station metadata") @@ -256,6 +261,7 @@ class _RadikoBaseIE(InfoExtractor): playlist_url = update_url_query(playlist_url, { "start_at": start_at.timestring(), "ft": start_at.timestring(), + "end_at": end_at.timestring(), "to": end_at.timestring(), }) |