CC-3789: Need to place rejected files into /problem_files directory
-make test_file_playability() a class method
This commit is contained in:
parent
032fb4e981
commit
0c6144a0f6
2 changed files with 8 additions and 17 deletions
|
@ -1,5 +1,4 @@
|
|||
from mediaconfig import AirtimeMediaConfig
|
||||
import mediamonitorcommon
|
||||
import traceback
|
||||
import os
|
||||
|
||||
|
@ -18,7 +17,7 @@ class MediaMonitorWorkerProcess:
|
|||
notifier.logger.info("received event %s", event)
|
||||
if event['mode'] == AirtimeMediaConfig.MODE_CREATE:
|
||||
filepath = event['filepath']
|
||||
if mediamonitorcommon.test_file_playability(filepath):
|
||||
if self.mmc.test_file_playability(filepath):
|
||||
notifier.update_airtime(event)
|
||||
else:
|
||||
notifier.logger.warn("Liquidsoap integrity check for file at %s failed. Not adding to media library.", filepath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue