I'm trying to clear the playlist from a playlist script...
Posted: 20 Aug 2012 00:21
I'd like to do this before my script adds to the playlist. I've tried doing:
But I get the following error:
Is there any other way to do this? Better yet, is there a way to delete only the previous item in the playlist, say, when the next item opens? I don't see anything in either the lua playlist documentation, or in the command line arguments to VLC.
Code: Select all
vlc.playlist.clear()
Code: Select all
0x14caead8] lua demux warning: Error while running script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/spacepotato.lua, function parse(): ...pp/Contents/MacOS/share/lua/playlist/spacepotato.lua:51: attempt to index field 'playlist' (a nil value)