From d4b1fc711e89afe8e83ae001ae79560841b548b0 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Tue, 5 Jun 2012 22:30:17 -0400 Subject: [PATCH] CC-3928: Use liquidsoap to test whether file is playable on upload. -change to wording --- airtime_mvc/application/models/StoredFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 8d612e721..31aee00b4 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -889,7 +889,7 @@ Logging::log("getting media! - 2"); $command = sprintf("/usr/bin/airtime-liquidsoap -c 'output.dummy(audio_to_stereo(single(\"%s\")))' > /dev/null 2>&1", $audio_file); exec($command, $output, $rv); if ($rv != 0) { - $result = array("code" => 110, "message" => "This file appears to be corrupted and could not be uploaded."); + $result = array("code" => 110, "message" => "This file appears to be corrupted and will not be added to media library."); } else { //Martin K.: changed to rename: Much less load + quicker since this is an atomic operation