Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | from plugin.core.constants import ACTIVITY_MODE |
||
8 | @module(start=True, blocking=True) |
||
9 | class Scrobbler(object): |
||
10 | methods = MethodManager([ |
||
11 | WebSocket, |
||
12 | Logging |
||
13 | ]) |
||
14 | started = [] |
||
15 | |||
16 | @classmethod |
||
17 | def start(cls, blocking=False): |
||
|
|||
18 | enabled = ACTIVITY_MODE.get(Preferences.get('activity.mode')) |
||
19 | |||
20 | # Start methods |
||
21 | cls.started = cls.methods.start(enabled) |
||
22 |