CC-1799 : Live Studio Playout from media library (pytagsfs)
-code cleanup, refactoring, and files moved from a watched-dir to a non-watched dir are now properly handled
This commit is contained in:
parent
8593b340de
commit
2be05a8004
5 changed files with 128 additions and 53 deletions
|
@ -0,0 +1,12 @@
|
|||
class MediaMonitorWorkerProcess:
|
||||
|
||||
#this function is run in its own process, and continuously
|
||||
#checks the queue for any new file events.
|
||||
def process_file_events(self, queue, notifier):
|
||||
|
||||
while True:
|
||||
event = queue.get()
|
||||
notifier.logger.info("received event %s", event)
|
||||
notifier.update_airtime(event)
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue