PDA

View Full Version : dynamic winamp playlist problems



mattwire
October 13th, 2002, 12:55 PM
Hi,
I think the "File Exists" function does what you want. You can use variables as the filename, so you can set it up to only run the execute command if the file does exist.

vynce
October 13th, 2002, 12:55 PM
Girder tab, near the bottom.

DookTibs
October 13th, 2002, 12:55 PM
Hello all. I currently have an mp3 jukebox setup using a Pronto remote...I have a MySQL database storing all the locations of my albums, and a program that runs and generates playlists for each album (21353.m3u might be "The Joshua Tree" for instance) and also generates CCF's for the Pronto (so that I have a button labeled "The Joshua Tree" that sends IR codes 2-1-3-5-3-PLAY for instance). Similar to SuperNudeList if you've ever used that, only more fun to roll your own. :) Right now I am using the gen_ir plugin (http://www.evation.com/software/winamp.html) for this, it was a quick and easy way to get it working.

Anyway I am getting reinvolved in using Girder after an absence of quite awhile, and I see that versions 3.1+ allow for some simple scripting, perfect. So I am working on moving my jukebox over to using Girder. I have had no problems setting up a system wherein I keep track of a string variable, let's call it foo, in Girder that builds up the "21353" type string when I hit "2" or "3" or what have you, and then my PLAY command is an OS Execute on C:\whatever\[foo].m3u. This works pretty well.

The only stumbling block I have is if I accidentally send a bad IR signal, like say someone walks in front of the remote while it is sending 21353 and blocks the "5" say, so that Girder only sees "2133" and tries to play that playlist. If that playlist doesn't exist, under my current method, when Girder tries the OS Execute I rightly get an error dialog like "Windows cannot find C:\2133.m3u", which is a big problem.

My current workaround is when I am generating the playlists, for all playlist combinations that don't have real data, I just create empty files so that Winamp doesn't choke and I avoid this error message. But this is an ugly solution for sure. Is there a way to maybe suppress dialogs resulting from an OS Execute? Or is there a better way of loading playlists that allow for variable substitution in Girder? All the Winamp exports I have found are for earlier Girder versions, and I've had no luck doing my own captures for this sort of functionality.

Any help would be appreciated, thanx in advance!

-tom

DookTibs
October 13th, 2002, 12:55 PM
I appreciate the fast reply - that function does indeed do exactly what I needed. Don't know how I missed it. Anyway thanx very much!

-tom

wom
October 13th, 2002, 12:55 PM
Hi,
I think the "File Exists" function does what you want. You can use variables as the filename, so you can set it up to only run the execute command if the file does exist.

Where do I find the "File exists" function?

wom
October 13th, 2002, 12:55 PM
Girder tab, near the bottom.

Thanks, found it. But how does it work?