How change title in VLC?

Discuss your Lua playlist, album art and interface scripts.
korp2
New Cone
New Cone
Posts: 2
Joined: 09 Feb 2018 11:17

How change title in VLC?

Postby korp2 » 11 Mar 2019 13:48

I try change existing title in VLC and add my text also.
I find this code:

Code: Select all

local metas = vlc.item:metas() local name = metas["filename"];
and after I write:
vlc.input.item():set_meta("title", name .. ">>")

Why it does not work?

and

Code: Select all

vlc.input.item():set_meta("title", vlc.var.get(input,"title") ..">>")
show: 0>>

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: How change title in VLC?

Postby mederi » 26 Mar 2019 13:53

Code: Select all

local name = vlc.input.item():metas().filename vlc.input.item():set_meta("title", name)


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 6 guests