summaryrefslogtreecommitdiff
path: root/plugins/Library.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Library.py')
-rw-r--r--plugins/Library.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Library.py b/plugins/Library.py
index 64f68a3..101fce4 100644
--- a/plugins/Library.py
+++ b/plugins/Library.py
@@ -18,9 +18,9 @@ class pluginLibrary(Plugin):
self.settings = QtCore.QSettings(ORGNAME, APPNAME)
def _load(self):
self.o = LibraryWidget(self)
- self.monty.add_listener('onReady', self.o.fill_library)
- self.monty.add_listener('onDisconnect', self.o.fill_library)
- self.monty.add_listener('onUpdateDBFinish', self.o.fill_library)
+ self.mpclient.add_listener('onReady', self.o.fill_library)
+ self.mpclient.add_listener('onDisconnect', self.o.fill_library)
+ self.mpclient.add_listener('onUpdateDBFinish', self.o.fill_library)
def _unload(self):
self.o = None
@@ -97,7 +97,7 @@ class LibraryWidget(QtGui.QWidget):
#build a tree from library
tree = [{},self.library.invisibleRootItem()]
- for song in self.plugin.monty.listLibrary():
+ for song in self.plugin.mpclient.listLibrary():
cur_item = tree
for part in str(self.modes.currentText()).split('/'):
tag = song.getTag(part)
@@ -141,7 +141,7 @@ class LibraryWidget(QtGui.QWidget):
paths = []
for item in self.library.selectedItems():
self.item_to_playlist(item, paths)
- self.plugin.monty.addToPlaylist(paths)
+ self.plugin.mpclient.addToPlaylist(paths)
def item_to_playlist(self, item, add_queue):
if item.type() == 1000: