def preferences_updated(self): # Update logging levels logging_handler.setup() # Trigger a client restart self.start()
import logging_handler logging_handler.setup() import migrator migrator.run() from host import SpotifyHost from settings import PREFIX, VERSION, ROUTEBASE from utils import ViewMode from revent import REvent import locale host = SpotifyHost() def plugin_callback(method, kwargs=None, async=False): """ Invokes callbacks on the plugin instance :param method: The method on the SpotifyPlugin class to call. :param kwargs: A dictionary of keyward args to pass to the method. """ Log.Debug('plugin_callback - method: %s, kwargs: %s, async: %s' % (method, kwargs, async)) kwargs = kwargs or {} result = None if async: on_complete = REvent()