Fixed typo. Made supported_file_formats static because they should be same for all instances

This commit is contained in:
Rudi Grinberg 2012-07-05 14:06:26 -04:00
parent 2317a3eba8
commit 3dfb35d2d1
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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()