#!/usr/bin/perl

#
# TUNEQUEUE SETTINGS
#
#
# Please pay attention to the syntax used in the examples when making changes.
# Everything in this file must be valid Perl or you will have no joy. 
# Also please note that a vast majority of the settings you probably want to
# change can currently only be changed in the SQL tables, not here.
#

# Site name, to be used in your templates if you like
$config{'SITE_NAME'} = 'Tunequeue test site';

# Debugging settings

# set to 1 for diagnostic logging
$config{'DEBUG'} = 1;
$config{'DEBUG_LOGFILE'} = '/var/log/tunequeue.log';

# Database Settings
#
# For now, tunequeue is only tested with MySQL.  However, since we use 
# DBI and plain old SQL calls for the most part, it might work out with
# other SQL servers too.. ?

# dbstring needs to be something like "DBI:mysql:YOUR DATABASE NAME:YOUR DB HOST:YOUR DB HOST PORT"

$config{'DB_STRING'} = "DBI:mysql:tunequeue";
$config{'DB_USER'} = "tq";
$config{'DB_PASS'} = "secret";


# File and path settings
#
# We are moving towards completely flexible paths.. but there may be some
# hardcoded paths still in the scripts, so be aware that if you change these
# and have problems, that might be why.
#

# base URL for website
$config{'WWW_BASE'} = "/";

# base URL for cgi's
$config{'CGI_BASE'} = "/cgi-bin/";

# directory where you keep the templates
$config{'TEMPLATE_DIR'} = "/var/www/www.spogbiper.com/templates";

# where your music lives
$config{'TUNE_DIR'} = "/usr/local/tunes/";

# where you keep your jingles
$config{'AD_DIR'} = "/usr/local/tunes/ads/";

# where you keep your cover art
$config{'COVERART_DIR'} = "/var/www/www.spogbiper.com/coverart/";

# base URL to coverart
$config{'COVERART_BASE'} = "/coverart/";

# where you keep your lyrics
$config{'LYRICS_DIR'} = "/var/www/www.spogbiper.com/lyrics/";

# where tunequeue backend scripts live
$config{'SCRIPT_DIR'} = "/usr/local/tunequeue/";

# when all else fails, play this song (full path):
$config{'DESPERATION_SONG'} = "/usr/local/tunes/08-ween-hey_there_fancypants-esc.ogg";

#if no CGI mode is set, use this template
$config{'DEFAULT_MODE'} = "nowplaying";

#default channel for site
$config{'DEFAULT_CHANNELID'} = 1;

#default display mode (css file to apply to template for mode)
$config{'DEFAULT_DISPLAYMODE'} = "wide";

#number of comingup and justplayed songs to preload (you can still ask for any number in a template)
$config{'PRELOAD_COMINGUP'} = 5;
$config{'PRELOAD_JUSTPLAYED'} = 5;

# number of news items to display
$config{'MAX_NEWSITEMS'} = 5;

# user controls in coming up stack
# allow skipping play of upcoming song
$config{'ALLOW_TRASHING'} = 1;
# allow trading song for another by same artist
$config{'ALLOW_TRADING'} = 1;
# allow moving song forward in play order
$config{'ALLOW_BUMPING'} = 1;

# leave this here
1;
