for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from plugin.core.constants import ACTIVITY_MODE
from plugin.core.helpers.thread import module
from plugin.core.method_manager import MethodManager
from plugin.preferences import Preferences
from plugin.scrobbler.methods import Logging, WebSocket
@module(start=True, blocking=True)
class Scrobbler(object):
methods = MethodManager([
WebSocket,
Logging
])
started = []
@classmethod
def start(cls, blocking=False):
blocking
enabled = ACTIVITY_MODE.get(Preferences.get('activity.mode'))
# Start methods
cls.started = cls.methods.start(enabled)