Fixed typo. Made supported_file_formats static because they should be same for all instances
This commit is contained in:
parent
2317a3eba8
commit
3dfb35d2d1
|
@ -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))
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue