mirror of https://github.com/mpv-player/mpv
ytdl_hook: remove some old playlist redirection hack
Should not be needed anymore. In fact, it's probably dangerous.
This commit is contained in:
parent
4c32468241
commit
04118eefb8
|
@ -888,12 +888,6 @@ function run_ytdl_hook(url)
|
||||||
end
|
end
|
||||||
|
|
||||||
mp.set_property("stream-open-filename", "memory://" .. table.concat(playlist, "\n"))
|
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
|
end
|
||||||
|
|
||||||
else -- probably a video
|
else -- probably a video
|
||||||
|
|
Loading…
Reference in New Issue