From 9fbc47d89b6f696cce2d68caf4509c7d1f222bfe Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 25 Apr 2013 09:36:35 +0200 Subject: mpclient: cache the database locally. --- nephilim/plugins/Library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nephilim/plugins/Library.py') 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): -- cgit v1.2.3