cc-4105: added replay replay gain integration with mm2
This commit is contained in:
parent
806f68ce57
commit
420182465e
|
@ -22,9 +22,15 @@ class ReplayGainUpdater(Thread, Loggable):
|
|||
automatically have its ReplayGain value calculated.
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def start_reply_gain():
|
||||
me = ReplayGainUpdater()
|
||||
me.daemon = True
|
||||
me.start()
|
||||
|
||||
def __init__(self):
|
||||
Thread.__init__(self)
|
||||
self.api_client = api_client.AirtimeApiClient()
|
||||
self.api_client = api_client.AirtimeApiClient.create_right_config()
|
||||
|
||||
def main(self):
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ from media.monitor.exceptions import FailedToObtainLocale, FailedToSetLocale, \
|
|||
from media.monitor.airtime import AirtimeNotifier, AirtimeMessageReceiver
|
||||
from media.monitor.watchersyncer import WatchSyncer
|
||||
from media.monitor.eventdrainer import EventDrainer
|
||||
from media.update.replaygainupdater import ReplayGainUpdater
|
||||
import media.monitor.pure as mmp
|
||||
|
||||
from api_clients import api_client as apc
|
||||
|
@ -55,6 +56,7 @@ except Exception as e:
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue