summaryrefslogtreecommitdiff
path: root/nephilim/winMain.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-08-24 20:46:27 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-08-24 20:46:27 +0200
commite4f46487145be0bbcd2aa278388a1b4b3ef78f54 (patch)
tree4e0170664bdc651c782601544572170d20090239 /nephilim/winMain.py
parente7c01e7b53f02b24e6938d945e84453537f3fa31 (diff)
song: convert to a subclass of dict.
also don't store whole song in Library and Playlist, this saves a significant amount of memory.
Diffstat (limited to 'nephilim/winMain.py')
-rw-r--r--nephilim/winMain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nephilim/winMain.py b/nephilim/winMain.py
index 31ab17f..728db42 100644
--- a/nephilim/winMain.py
+++ b/nephilim/winMain.py
@@ -178,8 +178,8 @@ class winMain(QtGui.QMainWindow):
state = self.mpclient.status()['state']
state = 'playing' if state == 'play' else 'paused' if state == 'pause' else 'stopped'
if song:
- self.setWindowTitle('%s by %s - %s [%s]'%(song.title(), song.artist(), APPNAME, state))
- self.__statuslabel.setText('%s by %s on %s [%s]'%(song.title(), song.artist(),song.album(), state))
+ self.setWindowTitle('%s by %s - %s [%s]'%(song['title'], song['artist'], APPNAME, state))
+ self.__statuslabel.setText('%s by %s on %s [%s]'%(song['title'], song['artist'],song['album'], state))
else:
self.setWindowTitle(APPNAME)
self.__statuslabel.setText('')