CC-5709: Airtime Analyzer

* Added MetadataAnalyzer unit tests and test data
* Improved debug logging and squashed pika logging
* Implemented file moving
* Extract the track number/total
* Fixed mapping of mutagen to Airtime fields in a few spots. The mapping
  matches the DB column names now.
* Fixed the bin/airtime_analyzer binary
* Started work on PluploadController to make it work with the new File
  API
This commit is contained in:
Albert Santoni 2014-03-10 16:32:23 -04:00
parent c0818682af
commit 6d7117f670
20 changed files with 194 additions and 11 deletions

View file

@ -35,6 +35,20 @@ class PluploadController extends Zend_Controller_Action
$this->_helper->json->sendJson(array("jsonrpc" => "2.0", "tempfilepath" => $tempFileName));
}
public function uploadFinishedAction()
{
$upload_dir = ini_get("upload_tmp_dir") . DIRECTORY_SEPARATOR . "plupload";
$filename = $this->_getParam('name');
$tempname = $this->_getParam('tempname');
$result = Application_Model_StoredFile::importUploadedFile($upload_dir, $filename, $tempname);
if (!is_null($result))
$this->_helper->json->sendJson(array("jsonrpc" => "2.0", "error" => $result));
$this->_helper->json->sendJson(array("jsonrpc" => "2.0"));
}
/* FIXME: I renamed this guy to uploadFinishedAction and am just starting to rewrite it to use the new File API.
* -- Albert March 10, 2014
public function copyfileAction()
{
$upload_dir = ini_get("upload_tmp_dir") . DIRECTORY_SEPARATOR . "plupload";
@ -46,5 +60,5 @@ class PluploadController extends Zend_Controller_Action
$this->_helper->json->sendJson(array("jsonrpc" => "2.0", "error" => $result));
$this->_helper->json->sendJson(array("jsonrpc" => "2.0"));
}
}*/
}