diff options
author | garret1317 <garret@airmail.cc> | 2025-05-17 22:39:44 +0100 |
---|---|---|
committer | garret1317 <garret@airmail.cc> | 2025-05-17 22:39:44 +0100 |
commit | 3d9a1d81293797a68dd8b2b4a45ad31418180477 (patch) | |
tree | 32a8afebce1e4aebd959bd57d46cd1a01cbecaaf /yt_dlp_plugins | |
parent | 8040cd476aea513884a8897efb2f0253ed34d6db (diff) | |
download | yt-dlp-rajiko-3d9a1d81293797a68dd8b2b4a45ad31418180477.tar.gz yt-dlp-rajiko-3d9a1d81293797a68dd8b2b4a45ad31418180477.tar.bz2 yt-dlp-rajiko-3d9a1d81293797a68dd8b2b4a45ad31418180477.zip |
add extractor arg to disable as-live workaround
Diffstat (limited to 'yt_dlp_plugins')
-rw-r--r-- | yt_dlp_plugins/extractor/radiko.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index e371878..b20f9bb 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -258,6 +258,7 @@ class _RadikoBaseIE(InfoExtractor): timefree_int = 1 if timefree else 0 do_blacklist_streams = not len(self._configuration_arg("no_stream_blacklist", ie_key="rajiko")) > 0 + do_as_live_chunks = not len(self._configuration_arg("no_as_live_chunks", ie_key="rajiko")) > 0 for element in url_data.findall(f".//url[@timefree='{timefree_int}'][@areafree='0']/playlist_create_url"): # find <url>s with matching timefree and no areafree, then get their <playlist_create_url> url = element.text @@ -297,7 +298,7 @@ class _RadikoBaseIE(InfoExtractor): preference = 1 entry_protocol = None - if delivered_live and timefree: + if delivered_live and timefree and do_as_live_chunks: chunks = hacks._generate_as_live_chunks(playlist_url, start_at, end_at) formats.append({ |