correctly rename AirTime to Airtime

This commit is contained in:
Martin Konecny 2012-07-16 15:33:44 -04:00
parent 4ebcb1b1f9
commit e056e5ff01
8 changed files with 10 additions and 10 deletions

View File

@ -40,7 +40,7 @@ def convert_dict_value_to_utf8(md):
# Airtime API Client
################################################################################
class AirTimeApiClient():
class AirtimeApiClient():
def __init__(self, logger=None):
if logger is None:

View File

@ -23,7 +23,7 @@ class ReplayGainUpdater(Thread):
def __init__(self, logger):
Thread.__init__(self)
self.logger = logger
self.api_client = api_client.AirTimeApiClient()
self.api_client = api_client.AirtimeApiClient()
def main(self):

View File

@ -80,7 +80,7 @@ try:
configure_locale()
config = AirtimeMediaConfig(logger)
api_client = apc.AirTimeApiClient()
api_client = apc.AirtimeApiClient()
api_client.register_component("media-monitor")
logger.info("Setting up monitor")

View File

@ -1,7 +1,7 @@
from api_clients import *
import sys
api_clients = api_client.AirTimeApiClient()
api_clients = api_client.AirtimeApiClient()
dj_type = sys.argv[1]
username = sys.argv[2]

View File

@ -107,10 +107,10 @@ except Exception, e:
class Global:
def __init__(self):
self.api_client = api_client.AirTimeApiClient()
self.api_client = api_client.AirtimeApiClient()
def selfcheck(self):
self.api_client = api_client.AirTimeApiClient()
self.api_client = api_client.AirtimeApiClient()
return self.api_client.is_server_compatible()
def test_api(self):
@ -172,7 +172,7 @@ if __name__ == '__main__':
g.test_api()
sys.exit()
api_client = api_client.AirTimeApiClient()
api_client = api_client.AirtimeApiClient()
api_client.register_component("pypo")
pypoFetch_q = Queue()

View File

@ -40,7 +40,7 @@ except Exception, e:
class PypoFetch(Thread):
def __init__(self, pypoFetch_q, pypoPush_q, media_q, telnet_lock):
Thread.__init__(self)
self.api_client = api_client.AirTimeApiClient()
self.api_client = api_client.AirtimeApiClient()
self.fetch_queue = pypoFetch_q
self.push_queue = pypoPush_q
self.media_prepare_queue = media_q

View File

@ -64,7 +64,7 @@ except Exception, e:
class Notify:
def __init__(self):
self.api_client = api_client.AirTimeApiClient()
self.api_client = api_client.AirtimeApiClient()
def notify_media_start_playing(self, data, media_id):
logger = logging.getLogger("notify")

View File

@ -42,7 +42,7 @@ except Exception, e:
class PypoPush(Thread):
def __init__(self, q, telnet_lock):
Thread.__init__(self)
self.api_client = api_client.AirTimeApiClient()
self.api_client = api_client.AirtimeApiClient()
self.queue = q
self.telnet_lock = telnet_lock