Merge branch '2.3.x' into devel

This commit is contained in:
Martin Konecny 2013-02-20 14:42:35 -05:00
commit 168a364da5
2 changed files with 6 additions and 2 deletions

View File

@ -53,7 +53,7 @@ fi
apt-get update
# Updated package list
apt-get -y --force-yes install tar gzip curl apache2 php5-pgsql libapache2-mod-php5 \
apt-get -y --force-yes install tar gzip curl php5-pgsql \
php-pear php5-gd postgresql odbc-postgresql python libsoundtouch-ocaml \
libtaglib-ocaml libao-ocaml libmad-ocaml ecasound \
libesd0 libportaudio2 libsamplerate0 rabbitmq-server patch \
@ -61,6 +61,7 @@ php5-curl mpg123 monit python-virtualenv multitail libcamomile-ocaml-data \
libpulse0 vorbis-tools lsb-release lsof sudo mp3gain vorbisgain flac vorbis-tools \
pwgen libfaad2
#install packages with --force-yes option (this is useful in the case
#of Debian, where these packages are unauthorized)
apt-get -y --force-yes install libmp3lame-dev lame icecast2
@ -87,6 +88,7 @@ apt-get -y --force-yes install liquidsoap
apt-get -y --force-yes install silan
if [ "$server" = "nginx" ]; then
apt-get -y --force-yes install nginx php5-fpm
# NGINX Config File
echo "----------------------------------------------------"
echo "2.1 NGINX Config File"
@ -110,6 +112,7 @@ if [ "$server" = "nginx" ]; then
echo "Airtime php pool file already exists..."
fi
else
apt-get -y --force-yes install apache2 libapache2-mod-php5
# Apache Config File
echo "----------------------------------------------------"
echo "2. Apache Config File"

View File

@ -174,7 +174,8 @@ def normalize_mutagen(path):
try:
command = ['silan', '-f', 'JSON', md['path']]
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
out = proc.stdout.read()
out = proc.communicate()[0].strip('\r\n')
info = json.loads(out)
md['cuein'] = info['sound'][0][0]
md['cueout'] = info['sound'][-1][1]