summaryrefslogtreecommitdiff
path: root/nephilim/plugins
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-09-19 09:32:15 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-09-19 09:32:15 +0200
commit6f1cf7b125325ec2d95986a60ee34ca127129fc8 (patch)
tree08bf092eccfe8e2439ca22fddca7d078a6b18284 /nephilim/plugins
parented542b4a2659bea708cae4217e3983c7bd7f3048 (diff)
mpclient: change tagtypes, urlhandlers and commands to vars
Diffstat (limited to 'nephilim/plugins')
-rw-r--r--nephilim/plugins/Filebrowser.py2
-rw-r--r--nephilim/plugins/Library.py2
-rw-r--r--nephilim/plugins/Songinfo.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/nephilim/plugins/Filebrowser.py b/nephilim/plugins/Filebrowser.py
index 983b8a2..7740afe 100644
--- a/nephilim/plugins/Filebrowser.py
+++ b/nephilim/plugins/Filebrowser.py
@@ -129,7 +129,7 @@ class wgFilebrowser(QtGui.QWidget):
self.view.setRootIndex(index)
self.path.setText(self.model.filePath(index))
else:
- if not 'file://' in self.plugin.mpclient.urlhandlers():
+ if not 'file://' in self.plugin.mpclient.urlhandlers:
self.logger.error('file:// handler not available. Connect via unix domain sockets.')
return
paths = []
diff --git a/nephilim/plugins/Library.py b/nephilim/plugins/Library.py
index edc59d6..348069c 100644
--- a/nephilim/plugins/Library.py
+++ b/nephilim/plugins/Library.py
@@ -51,7 +51,7 @@ class Library(Plugin):
self.settings.beginGroup(self.plugin.name)
tags_enabled = self.settings.value('grouping').toStringList()
- tags = self.plugin.mpclient.tagtypes()
+ tags = self.plugin.mpclient.tagtypes
self.taglist = QtGui.QListWidget(self)
self.taglist.setDragDropMode(QtGui.QAbstractItemView.InternalMove)
for tag in [tag for tag in tags_enabled if tag in tags]:
diff --git a/nephilim/plugins/Songinfo.py b/nephilim/plugins/Songinfo.py
index 0701ddb..7214c41 100644
--- a/nephilim/plugins/Songinfo.py
+++ b/nephilim/plugins/Songinfo.py
@@ -42,7 +42,7 @@ class Songinfo(Plugin):
self.settings.beginGroup(self.plugin.name)
tags_enabled = self.settings.value('tagtypes').toStringList()
- tags = self.plugin.mpclient.tagtypes()
+ tags = self.plugin.mpclient.tagtypes
self.taglist = QtGui.QListWidget(self)
self.taglist.setDragDropMode(QtGui.QAbstractItemView.InternalMove)
for tag in [tag for tag in tags_enabled if tag in tags]:
@@ -101,7 +101,7 @@ class Songinfo(Plugin):
return self.SettingsWidgetSonginfo(self)
def update_tagtypes(self):
- self.__tags = [tag for tag in self.settings.value(self.name + '/tagtypes').toStringList() if tag in self.mpclient.tagtypes()]
+ self.__tags = [tag for tag in self.settings.value(self.name + '/tagtypes').toStringList() if tag in self.mpclient.tagtypes]
self.o.set_tagtypes(self.__tags)
def refresh(self):
self.logger.info('Refreshing.')