From 2ca911616fab19d75aebb3689ac9f56d555d5974 Mon Sep 17 00:00:00 2001 From: drigato Date: Thu, 3 Apr 2014 10:12:20 -0400 Subject: [PATCH 1/2] Setting hidden flag to true on post request --- .../application/modules/rest/controllers/MediaController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/airtime_mvc/application/modules/rest/controllers/MediaController.php b/airtime_mvc/application/modules/rest/controllers/MediaController.php index 3a364adda..230144ee6 100644 --- a/airtime_mvc/application/modules/rest/controllers/MediaController.php +++ b/airtime_mvc/application/modules/rest/controllers/MediaController.php @@ -135,6 +135,7 @@ class Rest_MediaController extends Zend_Rest_Controller $now = new DateTime("now", new DateTimeZone("UTC")); $file->setDbTrackTitle($_FILES["file"]["name"]); $file->setDbUtime($now); + $file->setDbHidden(true); $file->save(); $callbackUrl = $this->getRequest()->getScheme() . '://' . $this->getRequest()->getHttpHost() . $this->getRequest()->getRequestUri() . "/" . $file->getPrimaryKey(); From 86b94b970ff7143edc50312b546d0582eed7dc0e Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Thu, 3 Apr 2014 11:34:57 -0400 Subject: [PATCH 2/2] CC-5709: Airtime Analyzer * Fix for incorrect length sometimes happening (VBR MP3?) --- .../airtime_analyzer/airtime_analyzer/metadata_analyzer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/airtime_analyzer/airtime_analyzer/metadata_analyzer.py b/python_apps/airtime_analyzer/airtime_analyzer/metadata_analyzer.py index fa0a88807..1fa269051 100644 --- a/python_apps/airtime_analyzer/airtime_analyzer/metadata_analyzer.py +++ b/python_apps/airtime_analyzer/airtime_analyzer/metadata_analyzer.py @@ -78,7 +78,7 @@ class MetadataAnalyzer(Analyzer): 'genre': 'genre', 'isrc': 'isrc', 'label': 'label', - 'length': 'length', + #'length': 'length', 'language': 'language', 'last_modified':'last_modified', 'mood': 'mood',