aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/yt_dlp_plugins
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2024-06-07 16:46:38 +0100
committergarret <garret@airmail.cc>2024-06-07 16:46:38 +0100
commitb4917bb190c44f4e7e47270b2f9e6b4b11cb74e6 (patch)
treeb3f5f46a920f435c4767eb422ff3df9a0dbf6911 /yt_dlp_plugins
parentef050f80bf922b45a78c7b32086ed86a02d4d18e (diff)
downloadyt-dlp-rajiko-b4917bb190c44f4e7e47270b2f9e6b4b11cb74e6.tar.gz
yt-dlp-rajiko-b4917bb190c44f4e7e47270b2f9e6b4b11cb74e6.tar.bz2
yt-dlp-rajiko-b4917bb190c44f4e7e47270b2f9e6b4b11cb74e6.zip
arrange station metadata dict more logically
Diffstat (limited to 'yt_dlp_plugins')
-rw-r--r--yt_dlp_plugins/extractor/radiko.py11
1 files 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})