Started to create pypo install script (install/pypo-install.py).

Cleaned up liquidsoap scripts a bit.

Renamed nondbinstall.php to propel-install.php

Removed unused files.
This commit is contained in:
Paul Baranowski 2010-12-03 15:34:18 -05:00
parent 51a1fde9ee
commit 3c12256cb8
14 changed files with 120 additions and 470 deletions

View file

@ -1,7 +1,6 @@
######################################
# main liquidsoap development script #
######################################
# author Jonas Ohrstrom <jonas@digris.ch>
########################################
@ -10,15 +9,12 @@
%include "ls_config.liq"
%include "library.liq"
%include "include_dynamic_vars.liq"
%include "include_notify.liq"
silence_threshold = -50.
silence_time = 3.
# log
set("log.file.path",log_file)
set("log.stdout", true)
@ -27,17 +23,13 @@ set("log.level",log_level)
# telnet server
set("server.telnet", true)
######################################
# some functions needed #
######################################
def fcross(a,b) =
add(normalize=false,[b,a])
end
######################################
# live recording functions
######################################
@ -52,16 +44,12 @@ def live_stop() =
end
#######################################################################
# File locations / sources
#######################################################################
silence = single("/storage/pypo/files/basic/silence.mp3")
jingles_cc = playlist("/storage/pypo/files/jingles/jcc")
fallback_couchcaster = playlist("/storage/pypo/files/fallback_couchcaster")
silence = single("/opt/pypo/files/basic/silence.mp3")
jingles_cc = playlist("/opt/pypo/files/jingles/jcc")
fallback_couchcaster = playlist("/opt/pypo/files/fallback_couchcaster")
fallback_couchcaster = audio_to_stereo(fallback_couchcaster)
# default
@ -70,70 +58,36 @@ default = silence
special = request.queue(id="special")
#######################################################################
# Includeing two A/B Queues, daypart & scheduler
# this will give us the sources 'daypart' & 'scheduler'
#######################################################################
%include "include_daypart.liq"
%include "include_scheduler.liq"
source = fallback(track_sensitive=false,transitions=[dp_to_scheduler],[strip_blank(threshold=silence_threshold,length=silence_time,scheduler),daypart])
%include "include_live_in.liq"
live = fallback(track_sensitive=false,[strip_blank(threshold=silence_threshold,length=silence_time,live),fallback_couchcaster])
live = switch(track_sensitive=false, [({!live_active},live)])
source = fallback(track_sensitive=false,transitions=[to_live_s, to_scheduler_s],[live, source])
# handle the annotate fades
faded = fade.in(type="log", fade.out(type="log", source))
# add up with a crossfade function (defined above)
source = cross(fcross,faded)
# track start detection (for notifications)
source = on_metadata(notify, source)
#source = on_track(notify, source)
# special to mix with final source
source = smooth_add(normal=source,special=special)
#####################################
# Stream Output
#####################################
@ -147,8 +101,4 @@ clock(id="clock_icecast",
restart_delay = 5,
buffer(source)))
#output.dummy(live_in)