removed dependency of mm from replaygain
This commit is contained in:
parent
a46cff61e5
commit
f1effc37a9
|
@ -3,12 +3,11 @@ from threading import Thread
|
||||||
import traceback
|
import traceback
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
import logging
|
||||||
|
|
||||||
from media.update import replaygain
|
from media.update import replaygain
|
||||||
from media.monitor.log import Loggable
|
|
||||||
|
|
||||||
|
class ReplayGainUpdater(Thread):
|
||||||
class ReplayGainUpdater(Thread, Loggable):
|
|
||||||
"""
|
"""
|
||||||
The purpose of the class is to query the server for a list of files which
|
The purpose of the class is to query the server for a list of files which
|
||||||
do not have a ReplayGain value calculated. This class will iterate over the
|
do not have a ReplayGain value calculated. This class will iterate over the
|
||||||
|
@ -30,6 +29,7 @@ class ReplayGainUpdater(Thread, Loggable):
|
||||||
def __init__(self,apc):
|
def __init__(self,apc):
|
||||||
Thread.__init__(self)
|
Thread.__init__(self)
|
||||||
self.api_client = apc
|
self.api_client = apc
|
||||||
|
self.logger = logging.getLogger()
|
||||||
|
|
||||||
def main(self):
|
def main(self):
|
||||||
raw_response = self.api_client.list_all_watched_dirs()
|
raw_response = self.api_client.list_all_watched_dirs()
|
||||||
|
|
Loading…
Reference in New Issue