diff --git a/python_apps/media-monitor/airtimefilemonitor/airtimemediamonitorbootstrap.py b/python_apps/media-monitor/airtimefilemonitor/airtimemediamonitorbootstrap.py index 35d69e6f7..ef8fc0731 100644 --- a/python_apps/media-monitor/airtimefilemonitor/airtimemediamonitorbootstrap.py +++ b/python_apps/media-monitor/airtimefilemonitor/airtimemediamonitorbootstrap.py @@ -74,7 +74,7 @@ class AirtimeMediaMonitorBootstrap(): all_files_set = set() for file_path in new_files: if len(file_path.strip(" \n")) > 0: - all_files_set.add(file_path[len(dir)+1:]) + all_files_set.add(file_path[len(dir):]) if os.path.exists(self.pe.timestamp_file): """find files that have been modified since the last time media-monitor process started.""" @@ -124,4 +124,4 @@ class AirtimeMediaMonitorBootstrap(): file_path = "%s/%s" % (dir, file_path) if os.path.exists(file_path): self.pe.handle_modified_file(False, os.path.basename(file_path), file_path) - \ No newline at end of file +