mirror of https://github.com/mpv-player/mpv
ytdl_hook: Escape EDL URLs
Should prevent the EDL parser from tripping over = and , in the URL.
This commit is contained in:
parent
cd5ab98ff9
commit
6a0a67034d
|
@ -162,7 +162,9 @@ mp.add_hook("on_load", 10, function ()
|
||||||
local playlist = "edl://"
|
local playlist = "edl://"
|
||||||
for i, entry in pairs(json.entries) do
|
for i, entry in pairs(json.entries) do
|
||||||
|
|
||||||
playlist = playlist .. entry.url .. ";"
|
local urllength = string.len(entry.url)
|
||||||
|
playlist = playlist .. "%" .. urllength .. "%" .. entry.url .. ";"
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
msg.debug("EDL: " .. playlist)
|
msg.debug("EDL: " .. playlist)
|
||||||
|
|
Loading…
Reference in New Issue