~/.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?