cc-2419 media monitor import on start
This commit is contained in:
parent
851d5c12b2
commit
0f67db9ed7
4 changed files with 103 additions and 55 deletions
|
@ -3,8 +3,6 @@ import time
|
|||
import os
|
||||
import logging
|
||||
|
||||
from multiprocessing import Process, Lock, Queue as mpQueue
|
||||
|
||||
# For RabbitMQ
|
||||
from kombu.connection import BrokerConnection
|
||||
from kombu.messaging import Exchange, Queue, Consumer, Producer
|
||||
|
@ -26,6 +24,7 @@ class AirtimeNotifier(Notifier):
|
|||
self.md_manager = AirtimeMetadata()
|
||||
self.import_processes = {}
|
||||
self.watched_folders = []
|
||||
|
||||
|
||||
while not self.init_rabbit_mq():
|
||||
self.logger.error("Error connecting to RabbitMQ Server. Trying again in few seconds")
|
||||
|
@ -112,7 +111,6 @@ class AirtimeNotifier(Notifier):
|
|||
# -data
|
||||
# -is_recorded_show
|
||||
def update_airtime(self, d):
|
||||
|
||||
filepath = d['filepath']
|
||||
mode = d['mode']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue