cc-2419 media monitor import on start

This commit is contained in:
martin 2011-06-30 17:23:31 -04:00
parent 851d5c12b2
commit 0f67db9ed7
4 changed files with 103 additions and 55 deletions

View file

@ -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']