Page 1 of 1

Lua script works in 2.x but not 3.x

Posted: 01 Oct 2019 15:05
by smw
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

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
In VLC 3 this no longer works.

What would be a way to accomplish this with version 3?

Re: Lua script works in 2.x but not 3.x

Posted: 05 Oct 2019 18:23
by mederi
You could try to file a bug report (https://trac.videolan.org/vlc/). There is a chance you get an answer whether it is an intended behaviour or a bug that should be fixed. There is a "tvrage.lua" script of that type in VLC 2.2 and no script of that type in VLC 3 at all.