summaryrefslogtreecommitdiff
path: root/nephilim/plugins/Lyrics.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-06-20 17:10:53 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-06-20 17:10:53 +0200
commitc6af9fe01cb3bea21471f839ec26a07b04ac24c2 (patch)
tree704e0d0542e8bf5a22a3d8632c9885cd989c1d5b /nephilim/plugins/Lyrics.py
parente7e7093a12fb5eb52fd0bb3071a7c85c7d8aefbd (diff)
plugin: make mpclient a var instead of a function.
Diffstat (limited to 'nephilim/plugins/Lyrics.py')
-rw-r--r--nephilim/plugins/Lyrics.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nephilim/plugins/Lyrics.py b/nephilim/plugins/Lyrics.py
index b49e18c..5f6d579 100644
--- a/nephilim/plugins/Lyrics.py
+++ b/nephilim/plugins/Lyrics.py
@@ -54,7 +54,7 @@ class wgLyrics(QtGui.QWidget):
if not song:
return self.txtView.clear()
- if song != self.p.mpclient().current_song():
+ if song != self.p.mpclient.current_song():
return
self.txtView.clear()
@@ -84,11 +84,11 @@ class Lyrics(Plugin):
for site in _available_sites:
if site in self.settings().value('%s/sites'%self.name).toStringList():
self.sites.append(site)
- self.connect(self.mpclient(), QtCore.SIGNAL('song_changed'), self.refresh)
+ self.connect(self.mpclient, QtCore.SIGNAL('song_changed'), self.refresh)
def _unload(self):
self.o = None
self.sites = []
- self.disconnect(self.mpclient(), QtCore.SIGNAL('song_changed'), self.refresh)
+ self.disconnect(self.mpclient, QtCore.SIGNAL('song_changed'), self.refresh)
def info(self):
return "Show (and fetch) the lyrics of the currently playing song."
@@ -106,7 +106,7 @@ class Lyrics(Plugin):
def refresh(self):
self.logger.info('Autorefreshing lyrics.')
- song = self.mpclient().current_song()
+ song = self.mpclient.current_song()
if not song:
return self.o.set_lyrics(None, None)