summaryrefslogtreecommitdiffstats
path: root/player/lua/ytdl_hook.lua
diff options
context:
space:
mode:
Diffstat (limited to 'player/lua/ytdl_hook.lua')
-rw-r--r--player/lua/ytdl_hook.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua
index 9dd1dc34c9..bc5c242907 100644
--- a/player/lua/ytdl_hook.lua
+++ b/player/lua/ytdl_hook.lua
@@ -644,6 +644,12 @@ function run_ytdl_hook(url)
end
mp.set_property("stream-open-filename", "memory://" .. table.concat(playlist, "\n"))
+
+ -- This disables mpv's mushy playlist security code, which will
+ -- break links that will be resolved to EDL later (because EDL is
+ -- not considered "safe", and the playlist entries got tagged as
+ -- network originating due to the playlist redirection).
+ mp.set_property_native("file-local-options/load-unsafe-playlists", true)
end
else -- probably a video