From 3dfb35d2d19e43ff148a837e19fd85a266857eaf Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Thu, 5 Jul 2012 14:06:26 -0400 Subject: [PATCH] Fixed typo. Made supported_file_formats static because they should be same for all instances --- .../airtimefilemonitor/airtimemediamonitorbootstrap.py | 2 +- .../media-monitor/airtimefilemonitor/mediamonitorcommon.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python_apps/media-monitor/airtimefilemonitor/airtimemediamonitorbootstrap.py b/python_apps/media-monitor/airtimefilemonitor/airtimemediamonitorbootstrap.py index 4f8a7c146..fd34811ad 100644 --- a/python_apps/media-monitor/airtimefilemonitor/airtimemediamonitorbootstrap.py +++ b/python_apps/media-monitor/airtimefilemonitor/airtimemediamonitorbootstrap.py @@ -163,5 +163,5 @@ class AirtimeMediaMonitorBootstrap(): self.logger.debug(debug_message) full_file_path = os.path.join(dir, file_path) self.logger.debug(full_file_path) - is os.path.exists(full_file_path): + if os.path.exists(full_file_path): getattr(self.pe,handle_attribute)(False,full_file_path, os.path.basename(full_file_path)) diff --git a/python_apps/media-monitor/airtimefilemonitor/mediamonitorcommon.py b/python_apps/media-monitor/airtimefilemonitor/mediamonitorcommon.py index 0c2f5b68a..79e2fa9cd 100644 --- a/python_apps/media-monitor/airtimefilemonitor/mediamonitorcommon.py +++ b/python_apps/media-monitor/airtimefilemonitor/mediamonitorcommon.py @@ -16,9 +16,9 @@ import pyinotify class MediaMonitorCommon: timestamp_file = "/var/tmp/airtime/media-monitor/last_index" + supported_file_formats = ['mp3', 'ogg'] def __init__(self, airtime_config, wm=None): - self.supported_file_formats = ['mp3', 'ogg'] self.logger = logging.getLogger() self.config = airtime_config self.md_manager = AirtimeMetadata()