0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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

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)