diff options
author | garret1317 <garret@airmail.cc> | 2025-05-25 12:16:13 +0100 |
---|---|---|
committer | garret1317 <garret@airmail.cc> | 2025-05-25 12:16:13 +0100 |
commit | 83ff35b140638c665547f55b1e4b876482ec3ce8 (patch) | |
tree | 735679a4958ba73caacde09fe3cd55e9ebbfc3ca | |
parent | 438bf8f69595db9b33d81b0c820c0989f68c2f57 (diff) | |
download | yt-dlp-rajiko-83ff35b140638c665547f55b1e4b876482ec3ce8.tar.gz yt-dlp-rajiko-83ff35b140638c665547f55b1e4b876482ec3ce8.tar.bz2 yt-dlp-rajiko-83ff35b140638c665547f55b1e4b876482ec3ce8.zip |
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
-rw-r--r-- | yt_dlp_plugins/extractor/radiko.py | 5 |
1 files changed, 4 insertions, 1 deletions
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): |