I'm trying to clear the playlist from a playlist script...

Discuss your Lua playlist, album art and interface scripts.
NoMoreNicksLeft
Blank Cone
Blank Cone
Posts: 21
Joined: 06 Aug 2012 19:39

I'm trying to clear the playlist from a playlist script...

Postby NoMoreNicksLeft » 20 Aug 2012 00:21

I'd like to do this before my script adds to the playlist. I've tried doing:

Code: Select all

vlc.playlist.clear()
But I get the following error:

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)
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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: I'm trying to clear the playlist from a playlist script.

Postby Jean-Baptiste Kempf » 20 Aug 2012 07:30

Looks like a bug. Trac it
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

NoMoreNicksLeft
Blank Cone
Blank Cone
Posts: 21
Joined: 06 Aug 2012 19:39

Re: I'm trying to clear the playlist from a playlist script.

Postby NoMoreNicksLeft » 22 Aug 2012 06:51

You guys closed the bug, said it was invalid (ticket 7370).

Then left snooty comments that I shouldn't want such a thing. And yet, when I show what I have to developers on IRC, you didn't even understand it... you thought you were watching a stream.

I've got something really cool going. Though no one who develops VLC may have ever intended it to be so, your functionality allows someone like me to set up a virtual television channel that plays indefinitely, without costing me any more than a tiny amount of bandwidth. Once I have it a bit polished, other people will be able to do the same. I don't know how it is in Euope, but here in the United States everyone complains about the channels the big corporations force-feed us: our History channel is full of laughably bad alien astronaut shows, MTV never plays music, our science fiction channel shows wrestling.

And yet, here's a way for regular people to be able to create their own alternative to all that non-sense. And they don't need a billion dollar satellite or a $50,000-per-month data center contract to be able to handle streaming.

All I'm asking for are a few minor things to make it a little prettier. To make it a little easier. I get it that this is your pet project and you've got alot to do and not enough time to do it... but when you treat me like this, it makes me think I shouldn't even bother to try to help. Why should I spend the next 4 months learning the source code so I can submit patches when I'm fairly certain that they'd be tossed?


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 0 guests