sintonia/python_apps/media-monitor/airtimefilemonitor/workerprocess.py
martin 2be05a8004 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
2011-07-05 15:48:50 -04:00

12 lines
No EOL
358 B
Python

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)