CC-2733: Resume play is broken: mp3 files skipped
- killing old pypo and liquidsoap processes - comparing mime type againt old type of mime
This commit is contained in:
parent
7cfde811c9
commit
14e1e15830
|
@ -395,10 +395,10 @@ class StoredFile {
|
||||||
{
|
{
|
||||||
$mime = $this->_file->getDbMime();
|
$mime = $this->_file->getDbMime();
|
||||||
|
|
||||||
if ($mime == "audio/vorbis") {
|
if ($mime == "audio/vorbis" || $mime == "application/ogg") {
|
||||||
return "ogg";
|
return "ogg";
|
||||||
}
|
}
|
||||||
else if ($mime == "audio/mp3") {
|
else if ($mime == "audio/mp3" || $mime == "audio/mpeg") {
|
||||||
return "mp3";
|
return "mp3";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -759,12 +759,13 @@ AirtimeInstall::CreateZendPhpLogFile();
|
||||||
exec("/usr/bin/airtime-pypo-stop");
|
exec("/usr/bin/airtime-pypo-stop");
|
||||||
exec("/usr/bin/airtime-show-recorder-stop");
|
exec("/usr/bin/airtime-show-recorder-stop");
|
||||||
|
|
||||||
exec("svc -d /etc/service/pypo");
|
exec("svc -dx /etc/service/pypo");
|
||||||
exec("svc -d /etc/service/pypo/log");
|
exec("svc -dx /etc/service/pypo/log");
|
||||||
exec("svc -d /etc/service/pypo-liquidsoap");
|
exec("svc -dx /etc/service/pypo-liquidsoap");
|
||||||
exec("svc -d /etc/service/pypo-liquidsoap/log");
|
exec("svc -dx /etc/service/pypo-liquidsoap/log");
|
||||||
exec("svc -d /etc/service/recorder");
|
exec("svc -dx /etc/service/recorder");
|
||||||
exec("svc -d /etc/service/recorder/log");
|
exec("svc -dx /etc/service/recorder/log");
|
||||||
|
exec("killall supervise");
|
||||||
|
|
||||||
$pathnames = array("/usr/bin/airtime-pypo-start",
|
$pathnames = array("/usr/bin/airtime-pypo-start",
|
||||||
"/usr/bin/airtime-pypo-stop",
|
"/usr/bin/airtime-pypo-stop",
|
||||||
|
|
|
@ -370,6 +370,7 @@ class PypoFetch(Thread):
|
||||||
# most recent schedule. After that we can just wait for updates.
|
# most recent schedule. After that we can just wait for updates.
|
||||||
status, schedule_data = self.api_client.get_schedule()
|
status, schedule_data = self.api_client.get_schedule()
|
||||||
if status == 1:
|
if status == 1:
|
||||||
|
logger.info("Bootstrap schedule received: %s", schedule_data)
|
||||||
self.process_schedule(schedule_data, "scheduler", True)
|
self.process_schedule(schedule_data, "scheduler", True)
|
||||||
logger.info("Bootstrap complete: got initial copy of the schedule")
|
logger.info("Bootstrap complete: got initial copy of the schedule")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue