This commit is contained in:
Fabio Manganiello 2017-11-03 04:35:55 +01:00
parent bbb8bd9020
commit 94150436d7

View file

@ -59,6 +59,7 @@ def _init_plugin(plugin, reload=False):
logging.warn('No such plugin: {}'.format(plugin)) logging.warn('No such plugin: {}'.format(plugin))
raise RuntimeError(e) raise RuntimeError(e)
# e.g. plugins.music.mpd base class: MusicMpdPlugin
cls_name = functools.reduce( cls_name = functools.reduce(
lambda a,b: a.title() + b.title(), lambda a,b: a.title() + b.title(),
(plugin.title().split('.')) (plugin.title().split('.'))