From 913269f5d469d1df3c4ae17be1f243adfa358d98 Mon Sep 17 00:00:00 2001 From: garret Date: Tue, 6 Aug 2024 09:08:07 +0100 Subject: mobile: add _old_archive_ids for compat with web --- yt_dlp_plugins/extractor/radiko_mobile.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'yt_dlp_plugins/extractor') diff --git a/yt_dlp_plugins/extractor/radiko_mobile.py b/yt_dlp_plugins/extractor/radiko_mobile.py index 14be03e..fc19cb4 100644 --- a/yt_dlp_plugins/extractor/radiko_mobile.py +++ b/yt_dlp_plugins/extractor/radiko_mobile.py @@ -34,6 +34,7 @@ class RadikoMobileEventIE(_RadikoMobileBaseIE): "live_status": "was_live", "ext": "m4a", "id": "10282949", + "_old_archive_ids": ["INT-20240802230000"], "title": "TOKYO MOON", "series": "Tokyo Moon", @@ -69,6 +70,7 @@ class RadikoMobileEventIE(_RadikoMobileBaseIE): start = traverse_obj(program, ("startAt", "seconds")) end = traverse_obj(program, ("endAt", "seconds")) + old_timestring = rtime.RadikoTime.fromtimestamp(start, tz=rtime.JST).timestring() return { **traverse_obj(program, { @@ -88,6 +90,7 @@ class RadikoMobileEventIE(_RadikoMobileBaseIE): "timestamp": start, "release_timestamp": end, "duration": end - start, + "_old_archive_ids": [join_nonempty(program.get("stationId"), old_timestring)], } def _real_extract(self, url): -- cgit v1.2.3-70-g09d2