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

Discuss your Lua playlist, album art and interface scripts.
smw
New Cone
New Cone
Posts: 4
Joined: 01 Oct 2019 06:04

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

Postby smw » 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

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?

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

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

Postby mederi » 05 Oct 2019 18:23

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.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 7 guests