From 83ff35b140638c665547f55b1e4b876482ec3ce8 Mon Sep 17 00:00:00 2001 From: garret1317 Date: Sun, 25 May 2025 12:16:13 +0100 Subject: make ShareIE return an id in advance as well in my excitement i may have prematurely released (har har) v1.5 with the return-id-in-advance trick only added to SearchIE oh well, it can be in ShareIE for next release adding to ShareIE has knock-on effects for PersonsIE as it returns a share url two birds with one stone --- yt_dlp_plugins/extractor/radiko.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'yt_dlp_plugins') diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 8f84bd7..fc09724 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -711,7 +711,10 @@ class RadikoShareIE(InfoExtractor): station = traverse_obj(queries, ("sid", 0)) time = traverse_obj(queries, ("t", 0)) time = rtime.RadikoShareTime(time).timestring() - return self.url_result(f"https://radiko.jp/#!/ts/{station}/{time}", RadikoTimeFreeIE) + return self.url_result( + f"https://radiko.jp/#!/ts/{station}/{time}", RadikoTimeFreeIE, + id=join_nonempty(station, time) + ) class RadikoStationButtonIE(InfoExtractor): -- cgit v1.2.3-70-g09d2