View Single Post
Old 10th March 2010, 20:32   #119
nradisch
Senior Member
 
Join Date: Jun 2008
Location: Weston, CT
Posts: 250
WebemSegundos - You are misunderstanding how the mechanism works. Each call to a #! external only supplies a single track to sc_trans. Returning more than one track only allows sc_trans to fill in various "comming soon" data that will make searching Shoutcast.com a bit more useful.

Each call to a #! will get internally replace by A SINGLE TRACK determined by the #! call.

The intended usage scenarios would be stuff like this:

1) Completely externally driven playlist

#!php call whatever

If this list is configured as looping, then the php script will be called every time a track is needed

2) Perhaps alternating with something else

#!php call track script
#!php call commercial script

Here the system would alternately call the two scripts, one offering up a track name, then the next offering up some sort of advertising track.

--Neil
nradisch is offline