Lua script works in 2.x but not 3.x
Posted: 01 Oct 2019 15:05
In VLC 2 I could do this to change the title of the playlist item to include some extra text:
~/.local/share/vlc/lua/meta/fetcher/addtotitle.lua
In VLC 3 this no longer works.
What would be a way to accomplish this with version 3?
~/.local/share/vlc/lua/meta/fetcher/addtotitle.lua
Code: Select all
function descriptor()
return { scope="local" }
end
function fetch_meta()
local filename = vlc.strings.decode_uri(string.gsub(tostring(vlc.item:uri()), "^.*/(.-)$","%1"))
vlc.item:set_meta("title", "test" .. " - " .. filename)
end
What would be a way to accomplish this with version 3?