From b6b93618e6e2b2f3a920516150434a13ec0ca0ff Mon Sep 17 00:00:00 2001 From: James Date: Thu, 13 Sep 2012 10:49:24 -0400 Subject: [PATCH 1/2] CC-4353: Numeric search fields in Library would benefit from format labels - bug fix --- airtime_mvc/public/js/airtime/library/library.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/public/js/airtime/library/library.js b/airtime_mvc/public/js/airtime/library/library.js index 140750762..66c86d9ee 100644 --- a/airtime_mvc/public/js/airtime/library/library.js +++ b/airtime_mvc/public/js/airtime/library/library.js @@ -354,7 +354,7 @@ var AIRTIME = (function(AIRTIME) { console.log(ele); if (ele.mDataProp == "bit_rate") { label = " (bps)"; - } else if (ele.mDataProp == "utime" || ele.mDataPro == "mtime" || ele.mDataPro == "lptime") { + } else if (ele.mDataProp == "utime" || ele.mDataProp == "mtime" || ele.mDataProp == "lptime") { label = " (yyyy-mm-dd)"; } else if (ele.mDataProp == "length") { label = " (hh:mm:ss.t)"; From 50f723fa7a52965a97d26a0d6eef60e34e958747 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Thu, 13 Sep 2012 11:06:44 -0400 Subject: [PATCH 2/2] CC-4416: Error with AAC files and Replaygain -fixed --- python_apps/media-monitor2/media/update/replaygain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/media-monitor2/media/update/replaygain.py b/python_apps/media-monitor2/media/update/replaygain.py index caabc9350..a630a2655 100644 --- a/python_apps/media-monitor2/media/update/replaygain.py +++ b/python_apps/media-monitor2/media/update/replaygain.py @@ -58,7 +58,7 @@ def get_file_type(file_path): elif re.search(r'flac$', file_path, re.IGNORECASE): file_type = 'flac' else: - mime_type = get_mime_type(file_path) == "audio/mpeg" + mime_type = get_mime_type(file_path) if 'mpeg' in mime_type: file_type = 'mp3' elif 'ogg' in mime_type: