aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorgarret1317 <garret@airmail.cc>2025-03-30 16:20:53 +0100
committergarret1317 <garret@airmail.cc>2025-03-30 16:20:53 +0100
commitfff631e63dfaa8bf3ec33c3fe4b5d04031b508bf (patch)
treedc9dbac7f76b6694061b659990dc4dd4eda9032b
parent1083eada23729aa799826f517c282f36db6e9d3c (diff)
downloadyt-dlp-rajiko-fff631e63dfaa8bf3ec33c3fe4b5d04031b508bf.tar.gz
yt-dlp-rajiko-fff631e63dfaa8bf3ec33c3fe4b5d04031b508bf.tar.bz2
yt-dlp-rajiko-fff631e63dfaa8bf3ec33c3fe4b5d04031b508bf.zip
add extractor arg to disable the blacklist
-rw-r--r--yt_dlp_plugins/extractor/radiko.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py
index 3f28f6b..9a74f34 100644
--- a/yt_dlp_plugins/extractor/radiko.py
+++ b/yt_dlp_plugins/extractor/radiko.py
@@ -256,6 +256,7 @@ class _RadikoBaseIE(InfoExtractor):
formats = []
timefree_int = 1 if timefree else 0
+ do_blacklist_streams = not len(self._configuration_arg("no_stream_blacklist", 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
@@ -286,7 +287,8 @@ class _RadikoBaseIE(InfoExtractor):
preference = -1
entry_protocol = 'm3u8'
- if domain in self._DOESNT_WORK_WITH_FFMPEG:
+
+ if domain in self._DOESNT_WORK_WITH_FFMPEG and do_blacklist_streams:
self.write_debug(f"skipping {domain} (known not working)")
continue
if domain in self._DELIVERED_ONDEMAND: