Old 10th January 2012, 18:40   #1
ridz
Senior Member
 
Join Date: Oct 2011
Posts: 105
get all music playlist from a directory

Anyone knows a php script to get all music in a directory, ordered "randomly"?

The php script file should then be included in the playlist file (main.lst) in shoutcast root directory.

Thanks,
ridz is offline   Reply With Quote
Old 12th January 2012, 03:48   #2
plurfm
Junior Member
 
Join Date: Nov 2011
Posts: 5
I had a similar problem to overcome when running my transcoder on a linux server and ended up solving it by having a 1 line cron job (like scheduled tasks in windows) create a playlist automatically based on the contents of a directory, then setting the transcoder to play at random. the cron job I used is:

0 9 * * * find /path/to/music -type f|sort> /path/to/playlist.m3u

maybe this helps? maybe it'll give you some ideas of how else you could solve the issue
plurfm is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump