cc-4105: fixed bug where api client wasn't being initialized right by replaygain updater. updated apiclient to better detect such bad usage

This commit is contained in:
Rudi Grinberg 2012-08-09 12:13:44 -04:00
parent 3c82497c34
commit 5bc170ba31
3 changed files with 10 additions and 8 deletions

View file

@ -57,11 +57,11 @@ watch_syncer = WatchSyncer(signal='watch',
chunking_number=config['chunking_number'],
timeout=config['request_max_wait'])
ReplayGainUpdater.start_reply_gain()
apiclient = apc.AirtimeApiClient.create_right_config(log=log,
config_path=api_client_config)
ReplayGainUpdater.start_reply_gain(apiclient)
# TODO : Need to do setup_media_monitor call somewhere around here to get
# import/organize dirs
sdb = AirtimeDB(apiclient)