self.log.info(self._client.tagtypes())
self.log.warning('Disabling MusicBrainzIdentifier')
Artist.use_mbid = False
+ else:
+ self.log.trace('Available metadata: %s', self._client.tagtypes())
else:
self.log.warning('Use of MusicBrainzIdentifier disabled!')
self.log.info('Consider using MusicBrainzIdentifier for your music library')
def foreach_plugin(self, method, *args, **kwds):
"""Plugin's callbacks dispatcher"""
+ self.log.trace('dispatching %s to plugins', method)
for plugin in self.core_plugins:
getattr(plugin, method)(*args, **kwds)
for plugin in self.plugins:
- #self.log.debug('dispatching {0} to {1}'.format(method, plugin))
getattr(plugin, method)(*args, **kwds)
@property
config.write(sys.stdout, space_around_delimiters=True)
sys.exit(0)
- logger.info('Starting...')
+ logger.info('Starting (%s)...', info.__version__)
sima = core.Sima(config)
# required core plugins
# third parties components
# local import
+from ...client import PlayerError
from ...lib.plugin import Plugin
def sub_chan(self):
self.log.debug('Registering as {}'.format(self.chan))
- self.player.subscribe(self.chan)
- self._registred = True
+ try:
+ self.player.subscribe(self.chan)
+ self._registred = True
+ except PlayerError as err:
+ self.log.error('Failed to register: %s', err)
def callback_need_track(self):
if self.is_capable():