Could you guys add the ability to recursively search the mp3 directory. I have many subdirectories and would like to build a playlist for everything contained within them.
We have definitely considered that! I have researched to figure out how this might work, and have tested a little as well. As an option or variable it would be incredibly helpful. However there are a few things to be concerned about - first, that the directory command is run on the server. Depending on how deep your dir structure is, it may place some additional demand on the server, and also cause a delay in playback as the server compiles the results. IOW your audience may be looking at a blank player for a few seconds until the results are returned. Then, imagine this happening for EVERY page request! If more than a few listeners hit that page at the same time, then there might be real problems. Remember, the benefit here is for a dynamic playlist. If you have a deep structure that evaluated, cause the problems I mention above, then you would be much better off with a playlist that is NOT dynamic. IOW you should make a hard XSPF playlist that is delivered immediately and updated manually. Or I could imagine a hybrid script run during offpeak hours that updates the playlist daily.
Not to rain on your parade, because this is something we have thought about, but maybe the next version we make will include multiple versions of the script for these kinds of purposes! I think there is a population interested in dynamic playlisting of new content, and another interested in playlisting archives. Maybe we could make one script that has functionality for both!
Thoughts? And thanks for the feedback!!
-jonathan leonard
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1710590
Originator: NO
We have definitely considered that! I have researched to figure out how this might work, and have tested a little as well. As an option or variable it would be incredibly helpful. However there are a few things to be concerned about - first, that the directory command is run on the server. Depending on how deep your dir structure is, it may place some additional demand on the server, and also cause a delay in playback as the server compiles the results. IOW your audience may be looking at a blank player for a few seconds until the results are returned. Then, imagine this happening for EVERY page request! If more than a few listeners hit that page at the same time, then there might be real problems. Remember, the benefit here is for a dynamic playlist. If you have a deep structure that evaluated, cause the problems I mention above, then you would be much better off with a playlist that is NOT dynamic. IOW you should make a hard XSPF playlist that is delivered immediately and updated manually. Or I could imagine a hybrid script run during offpeak hours that updates the playlist daily.
Not to rain on your parade, because this is something we have thought about, but maybe the next version we make will include multiple versions of the script for these kinds of purposes! I think there is a population interested in dynamic playlisting of new content, and another interested in playlisting archives. Maybe we could make one script that has functionality for both!
Thoughts? And thanks for the feedback!!
-jonathan leonard