diff options
author | garret1317 <garret@airmail.cc> | 2025-05-18 12:10:06 +0100 |
---|---|---|
committer | garret1317 <garret@airmail.cc> | 2025-05-18 12:10:06 +0100 |
commit | d56d025e635dfe83dd1897956e99349f8b125ead (patch) | |
tree | b42a1628ae10411912121b05daf3bc11bdcd5160 /yt_dlp_plugins/extractor/radiko.py | |
parent | 3d9a1d81293797a68dd8b2b4a45ad31418180477 (diff) | |
download | yt-dlp-rajiko-d56d025e635dfe83dd1897956e99349f8b125ead.tar.gz yt-dlp-rajiko-d56d025e635dfe83dd1897956e99349f8b125ead.tar.bz2 yt-dlp-rajiko-d56d025e635dfe83dd1897956e99349f8b125ead.zip |
track real chunk duration to prevent dupes when chunks are longer than expected
closes #24 for real this time
Diffstat (limited to 'yt_dlp_plugins/extractor/radiko.py')
-rw-r--r-- | yt_dlp_plugins/extractor/radiko.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index b20f9bb..e8174c6 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -299,13 +299,16 @@ class _RadikoBaseIE(InfoExtractor): entry_protocol = None if delivered_live and timefree and do_as_live_chunks: - chunks = hacks._generate_as_live_chunks(playlist_url, start_at, end_at) + + chunks_playlist = hacks._generate_as_live_playlist( + self, playlist_url, start_at, end_at, domain, auth_data["token"] + ) formats.append({ "url": playlist_url, # fallback to live for ffmpeg etc "format_id": join_nonempty(domain, "chunked"), "live": False, - "hls_media_playlist_data": hacks._playlist_from_chunks(self, chunks, domain, auth_data["token"]), + "hls_media_playlist_data": chunks_playlist, "preference": preference, "ext": "m4a", }) |