#Configuration file used by all scripts in the icedj suite. Must be located
#in the data directory. Each config line in this file is white space delimited.
#All datafiles are assumed to be located in the data directory (this does not 
#include the web dir and the root location of mp3 files

#Fields marked <required> are required for IceDJ to function
#Fields marked <multi> would contain multiple entries for multiple streams
#root name of log/pid file name <required>
logname		icedj

#server name to be published to yellowpages <required>
name		streaming with icedj

#genre list to be published to yellowpages <required>
genre		techno

#url to be published to yellowpages <required>
url		http://www.yourserver.com/

#name of the server that icecast is running on <required> <multi>
server		icecast.yourserver.com icecast.yourserver.com

#port to stream to server at <required> <multi>
port		8001 9001

#published on yellowpages <required> <multi>
public		1 1

#bitrate of source files (icedj, does not re-encode) <required> <multi>
bitrate		24 48

#icecast password <required> <multi>
password	password1 password2


#playlist is the database of available files to stream and information about
#them the playlist db is tab delimited. Each line is a record (songinfo) and
#contains at the very least path, artist & title any other fields can be 
#defined, so that they can be used in HTML template files using <!fieldname>.
#A field name preceeded with 'l_' will replaced with an HREF link 
#pointing to that fields contents.
#Take a look at the included "playlist" file for an example of how the file
#should look with the below setup
#<required> (path relative to data directory)
playlist	playlist	
#addtional songinfo database fields <optional>
songinfo	l_artist

#root directory to append the path found in the playlist to <required>
mp3root		/mp3/

#source specifies the element of the path that is different for each copy
#of the streamer. If left blank, the path in the playlist is assumed to be
#the full path past mp3root and only one stream is assumed to be present
#<multi>
source	24bit	48bit

#method for identifying files of different servers using the source field
#pre  => source is inserted between mp3root and the path from the playlist
#        i.e. <mp3root><source><path>
#post => source is appended to the path from the playlist
#        i.e. <mp3root><path><source>
sourceID pre

#root web directory <required if you are generating any webpages>
webroot		/web/

#all web file's root names should be relative to the webroot directory
#take a look in the web directory in this package for sample .templ
#files for all generated pages (.html will be generated from these .tmpl
#files)
#root name of history files (.tmpl and .html)
history		history history2

#root name of playlist files (.tmpl and .html)
playlistpage	playlist

#root name of top requests files (.tmpl and .html)
toppage		top

#root name of request file--only one file! (.tmpl and .err)
requestpage	request

#should the playlist play in shuffle mode or straight through?
#if you choose no shuffle, realize that having requests available
#will disturb the straight through order.
shuffle		1

#contact email used by error webpages generated by some of the scripts.
email		foo@bar.com

#minimum number of songs to play before a specific track can be repeated <required>
replaymin	10

#maximum number of requests a single IP can do in one day <required>
maxrequests	5

#list of IPs that aren't subject to maxrequests and single song request limits
#you can use * as a wildcard for any of the numbers
specialip	255.255.255.255 128.128.128.*

#list of IPs to be blocked from making any requests
#you can use * as a wildcard for any of the numbers
blockip		255.255.255.255

#should we try to update mp3spy.com with our current track name
#requries mp3spyupdater.pl
updateMP3spy	1

#if the below field is uncommented and defined, mp3spyupdater will propagate 
#the track title via the named CGI on the icecast server (required if icedj
#and icecast are running on different servers

#propagateURL	cgi-bin/propagate.pl

#location of logs created by icecast to be used to derive statistics. These
#fields should contain a fully qualified URL, path relative to the data 
#directory or a fully qualified path.
#server logs  <multi>
serverlog	http://icecast.yourserver.com/~icecast/icecast1.log http://icecast.yourserver.com/~icecast/icecast2.log

#server statistics  <multi>
serverstat	http://icecast.yourserver.com/~icecast/icecast1.stats http://icecast.yourserver.com/~icecast/icecast2.stats

#by default all .html, .tmpl and .err files are processed looking for a
#statsblock to update. if statsinclude is defined only the listed files
#are processed, if statsexclude is defined, the listed files are not
#processsed. To block/include a whole directory using statsexclude specify the
#name of directory followed but do not include the trailing / (i.e. to block 
#all of the webroot/data/, specify data in statsexclude
statsinclude

statsexclude

#directory where scripts (icedj.pl, etc.) are located <required>
scriptpath /home/icedj/

#full path to streaming program (current only Icecast's shout is
#supported) <required>
streamer /home/shout/shout

#file containing the schedule of shows (relative to data directory)
schedule schedule

#file containing template for topten show (relative to data directory)
topten	topten

#file containing template for <!STATSBLOCK> (relative to data directory)
statsblock	statsblock

#full path to the script/program that you'd like to execute each time a new
#song is about to start. (similar to Icecast Shout's djscript). It will be
#executed and the current $SONGINFO is passed to it as its ARGS
djscript	

#output mode determines how icedj runs.
# 0 => normal mode with full output
# 1 => silent mode but foreground
# 2 => quiet (shout's output surpressed)
# 3 => background
# 4 => verbose (print debugging info)
mode	0

##<END>##
#anything moved below this line will not be displayed (i.e. editable) in
#webadmin.pl. Move required paths that users shouldn't change here. This is
#useful if you are offering iceDJ as a service