CC-3789: Need to place rejected files into /problem_files directory

-only do this for files under /srv/airtime/stor
This commit is contained in:
Martin Konecny 2012-05-09 00:06:33 -04:00
parent 4caba5bdea
commit 032fb4e981
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ class MediaMonitorWorkerProcess:
notifier.update_airtime(event)
else:
notifier.logger.warn("Liquidsoap integrity check for file at %s failed. Not adding to media library.", filepath)
self.mmc.move_file(filepath, os.path.join(self.config.problem_directory, os.path.basename(filepath)))
if self.config.storage_directory in filepath:
self.mmc.move_file(filepath, os.path.join(self.config.problem_directory, os.path.basename(filepath)))
else:
notifier.update_airtime(event)
except Exception, e: