CC-2571 : Media Monitor Bootstrap

making sure files added to the organize folder while media monitor is down are imported to Airtime when it is started up again.
This commit is contained in:
Naomi Aro 2011-07-20 14:38:32 +02:00
parent 6897569862
commit c5c06eddc2
2 changed files with 7 additions and 3 deletions
python_apps/media-monitor/airtimefilemonitor

View file

@ -64,7 +64,8 @@ class AirtimeProcessEvent(ProcessEvent):
if self.mmc.is_parent_directory(pathname, self.config.organize_directory):
#file was created in /srv/airtime/stor/organize. Need to process and move
#to /srv/airtime/stor/imported
self.mmc.organize_new_file(pathname)
new_filepath = self.mmc.organize_new_file(pathname)
return new_filepath
else:
self.mmc.set_needed_file_permissions(pathname, dir)
if self.mmc.is_parent_directory(pathname, self.config.recorded_directory):