From 38882abd1a5651811e15f070679be311061f3bc8 Mon Sep 17 00:00:00 2001 From: drigato Date: Fri, 16 Jan 2015 13:26:55 -0500 Subject: [PATCH] SAAS-542: ryerson.airtime.pro file doesn't play, preview, or download --- .../application/models/airtime/CloudFile.php | 26 ++++--------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/airtime_mvc/application/models/airtime/CloudFile.php b/airtime_mvc/application/models/airtime/CloudFile.php index bdab1d6b4..c6fe79a91 100644 --- a/airtime_mvc/application/models/airtime/CloudFile.php +++ b/airtime_mvc/application/models/airtime/CloudFile.php @@ -65,27 +65,11 @@ class CloudFile extends BaseCloudFile */ public function isValidPhysicalFile() { - $ch = curl_init($this->getURLForTrackPreviewOrDownload()); - - // There is not enough memory to download large files so instead - // write the file contents to /dev/null - $fp = fopen('/dev/null', 'w+'); - - curl_setopt_array($ch, array( - CURLOPT_FILE, $fp, - CURLOPT_RETURNTRANSFER => true, - CURLOPT_SSL_VERIFYPEER => false, - CURLOPT_VERBOSE => false - )); - curl_exec($ch); - $http_status = curl_getinfo($ch); - - if ($http_status["http_code"] === 200) - { - return true; - } else { - return false; - } + // We don't need to check if the cloud file is a valid file because + // before it is imported the Analyzer runs it through Liquidsoap + // to check its playability. If Liquidsoap can't play the file it + // does not get imported into the Airtime library. + return true; } /**