From f3d0f0639781182540675fdcba418c5e8546b9b5 Mon Sep 17 00:00:00 2001 From: denise Date: Mon, 18 Jun 2012 12:00:54 -0400 Subject: [PATCH] - Add Media: reverted change to testing audo file with liquidsoap (will fix in 2.1.x) --- 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 5f75bb0e5..6c1ff7ec7 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\")))' 2>&1", $audio_file); exec($command, $output, $rv); - if ($rv != 0 || $output[0] == 'TagLib: MPEG::Properties::read() -- Could not find a valid last MPEG frame in the stream.') { + if ($rv != 0 || count($output) != 0) { $result = array("code" => 110, "message" => "This file appears to be corrupted and will not be added to media library."); } else {