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:
parent
4caba5bdea
commit
032fb4e981
|
@ -22,7 +22,8 @@ class MediaMonitorWorkerProcess:
|
||||||
notifier.update_airtime(event)
|
notifier.update_airtime(event)
|
||||||
else:
|
else:
|
||||||
notifier.logger.warn("Liquidsoap integrity check for file at %s failed. Not adding to media library.", filepath)
|
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:
|
else:
|
||||||
notifier.update_airtime(event)
|
notifier.update_airtime(event)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|
Loading…
Reference in New Issue