Page 1 of 1

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

Posted: 20 Aug 2012 00:21
by NoMoreNicksLeft
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.

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

Posted: 20 Aug 2012 07:30
by Jean-Baptiste Kempf
Looks like a bug. Trac it

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

Posted: 22 Aug 2012 06:51
by NoMoreNicksLeft
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?