ytdl_hook: Escape EDL URLs

Should prevent the EDL parser from tripping over = and , in the
URL.
This commit is contained in:
ChrisK2 2015-05-07 20:41:46 +02:00
parent cd5ab98ff9
commit 6a0a67034d
1 changed files with 3 additions and 1 deletions

View File

@ -162,7 +162,9 @@ mp.add_hook("on_load", 10, function ()
local playlist = "edl://"
for i, entry in pairs(json.entries) do
playlist = playlist .. entry.url .. ";"
local urllength = string.len(entry.url)
playlist = playlist .. "%" .. urllength .. "%" .. entry.url .. ";"
end
msg.debug("EDL: " .. playlist)