From b4917bb190c44f4e7e47270b2f9e6b4b11cb74e6 Mon Sep 17 00:00:00 2001 From: garret Date: Fri, 7 Jun 2024 16:46:38 +0100 Subject: arrange station metadata dict more logically --- yt_dlp_plugins/extractor/radiko.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 15b49f3..e6bc9d2 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -489,15 +489,18 @@ class _RadikoBaseIE(InfoExtractor): station_name = station.find("name").text station_url = url_or_none(station.find("href").text) meta = { + "id": station_id, "title": station_name, + "alt_title": station.find("ascii_name").text, + "channel": station_name, - "uploader": station_name, "channel_id": station_id, "channel_url": station_url, - "thumbnail": url_or_none(station.find("banner").text), - "alt_title": station.find("ascii_name").text, + + "uploader": station_name, "uploader_url": station_url, - "id": station_id, + + "thumbnail": url_or_none(station.find("banner").text), } self.cache.store("rajiko", station_id, { "expiry": (now + datetime.timedelta(days=1)).timestamp(), "meta": meta}) -- cgit v1.2.3-70-g09d2