summaryrefslogtreecommitdiff
path: root/nephilim/plugins/Library.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-04-25 09:36:35 +0200
committerAnton Khirnov <anton@khirnov.net>2013-04-25 10:11:29 +0200
commit9fbc47d89b6f696cce2d68caf4509c7d1f222bfe (patch)
tree3bbe7d775a4723b7e4addf98818e1647d3c35d5e /nephilim/plugins/Library.py
parent360ad0cf82395ff42dde4bea31bbd13b7d417163 (diff)
mpclient: cache the database locally.
Diffstat (limited to 'nephilim/plugins/Library.py')
-rw-r--r--nephilim/plugins/Library.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nephilim/plugins/Library.py b/nephilim/plugins/Library.py
index 3ff6242..3aa49f9 100644
--- a/nephilim/plugins/Library.py
+++ b/nephilim/plugins/Library.py
@@ -99,7 +99,7 @@ class LibraryWidget(QtGui.QWidget):
def fill_library(self):
self.logger.info('Refreshing library.')
- self.plugin.mpclient.database(lambda songs: self.library_model.fill(songs, self.foldings.currentText().split('/')))
+ self.library_model.fill(self.plugin.mpclient.db.values(), self.foldings.currentText().split('/'))
@Slot(unicode)
def filter_library(self, text):