Lua playlist scripts in preferences folder aren't detected

Discuss your Lua playlist, album art and interface scripts.
RedDwarf69
Blank Cone
Blank Cone
Posts: 11
Joined: 25 Aug 2008 17:07

Lua playlist scripts in preferences folder aren't detected

Postby RedDwarf69 » 30 Aug 2008 18:23

http://wiki.videolan.org/Documentation: ... troduction says:
You can add your own Lua playlist scripts in this directory or in your VLC's preferences folder "lua/playlist" subdirectory.
If I put my script in /usr/share/vlc/lua/playlist/ I get:
$ vlc -vv --no-color file://imagenio.html 2>&1 | grep 'Lua playlist script'
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/appletrailers.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/break.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/dailymotion.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/france2.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/googlevideo.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/imagenio.lua
[00000431] lua demux debug: Lua playlist script /usr/share/vlc/lua/playlist/imagenio.lua's probe() function was successful
But if i remove it from /usr/share/vlc/lua/playlist/ and copy it to $HOME/.config/vlc $HOME/.config/vlc/lua or $HOME/.config/vlc/lua/playlist what I get is:
$ vlc -vv --no-color file://imagenio.html 2>&1 | grep 'Lua playlist script'
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/appletrailers.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/break.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/dailymotion.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/france2.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/googlevideo.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/joox.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/lelombrik.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/megavideo.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/metacafe.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/youtube.lua
[00000431] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/youtube_homepage.lua
I'm using vlc-0.9.1-0.pm.2@x86-64 from http://packman.links2linux.org/ on openSUSE 11.0.
It's a bug, a documentation error or I missunderstood something?

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Lua playlist scripts in preferences folder aren't detected

Postby dionoea » 31 Aug 2008 18:31

It looks like a bug. I'll investigate. Thanks for the report.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Lua playlist scripts in preferences folder aren't detected

Postby dionoea » 31 Aug 2008 22:58

Ok, so I installed a git master VLC on my computer (as far as I know the lua stuff hasn't changed since we tagged 0.9.1) and it worked fine.

For your info:

Code: Select all

22:58 antoine@macbook ~/.local/share/vlc/lua/playlist% cat test.lua function probe() vlc.msg.err( "It's me!" ) return false end
And when running VLC:

Code: Select all

[00000410] lua demux debug: Trying Lua scripts in /home/antoine/.local/share/vlc/lua/playlist [00000410] lua demux debug: Trying Lua playlist script /home/antoine/.local/share/vlc/lua/playlist/test.lua [00000410] lua demux error: It's me! [00000410] lua demux debug: Trying Lua scripts in /home/antoine/local/share/vlc/lua/playlist [00000410] lua demux debug: Trying Lua playlist script /home/antoine/local/share/vlc/lua/playlist/appletrailers.lua [00000410] lua demux debug: Trying Lua playlist script /home/antoine/local/share/vlc/lua/playlist/break.lua [00000410] lua demux debug: Trying Lua playlist script /home/antoine/local/share/vlc/lua/playlist/dailymotion.lua [00000410] lua demux debug: Trying Lua playlist script /home/antoine/local/share/vlc/lua/playlist/france2.lua [00000410] lua demux debug: Trying Lua playlist script /home/antoine/local/share/vlc/lua/playlist/googlevideo.lua [00000410] lua demux debug: Trying Lua playlist script /home/antoine/local/share/vlc/lua/playlist/joox.lua [00000410] lua demux debug: Trying Lua playlist script /home/antoine/local/share/vlc/lua/playlist/lelombrik.lua [00000410] lua demux debug: Trying Lua playlist script /home/antoine/local/share/vlc/lua/playlist/megavideo.lua [00000410] lua demux debug: Trying Lua playlist script /home/antoine/local/share/vlc/lua/playlist/metacafe.lua [00000410] lua demux debug: Trying Lua playlist script /home/antoine/local/share/vlc/lua/playlist/youtube.lua [00000410] lua demux debug: Trying Lua playlist script /home/antoine/local/share/vlc/lua/playlist/youtube_homepage.lua
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Lua playlist scripts in preferences folder aren't detected

Postby dionoea » 31 Aug 2008 23:02

Ah ok, I understand the issue. It's not the config folder under linux (that changed when I edited VLC to comply with the XDG Base Directory Specification 0.6). I changed the documentation accordingly. Tell me if it works better now.
Cheers,
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

RedDwarf69
Blank Cone
Blank Cone
Posts: 11
Joined: 25 Aug 2008 17:07

Re: Lua playlist scripts in preferences folder aren't detected

Postby RedDwarf69 » 01 Sep 2008 01:42

Tell me if it works better now.
Yes, now it detects it correctly.

Thanks.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 6 guests