From 39138d1a08d7398aa459cae85d52d86c839278d0 Mon Sep 17 00:00:00 2001 From: garret Date: Tue, 9 Jul 2024 20:47:04 +0100 Subject: format some dicts a bit nicer --- yt_dlp_plugins/extractor/radiko.py | 10 ++++++++-- 1 file changed, 8 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 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(), }) -- cgit v1.2.3-70-g09d2