diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-03-07 13:54:58 +0100 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-03-07 13:54:58 +0100 |
commit | 011c8f43a9fa9a12c72535f5b719c713578f55e7 (patch) | |
tree | 8d13fd32c4a921d9c6eb13f95868de04e5135858 /nephilim/plugins/Library.py | |
parent | fbd81bd6a5b9495fd29a91b345fb0555f1e7e176 (diff) |
clSong: get rid of camelcase.
Diffstat (limited to 'nephilim/plugins/Library.py')
-rw-r--r-- | nephilim/plugins/Library.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nephilim/plugins/Library.py b/nephilim/plugins/Library.py index 3f3f2d5..11e1816 100644 --- a/nephilim/plugins/Library.py +++ b/nephilim/plugins/Library.py @@ -104,7 +104,7 @@ class LibraryWidget(QtGui.QWidget): for song in self.plugin.mpclient().library(): cur_item = tree for part in str(self.modes.currentText()).split('/'): - tag = song.getTag(part) + tag = song.tag(part) if isinstance(tag, list): tag = tag[0] #FIXME hack to make songs with multiple genres work. if not tag: @@ -116,8 +116,8 @@ class LibraryWidget(QtGui.QWidget): cur_item[1].addChild(it) cur_item[0][tag] = [{}, it] cur_item = cur_item[0][tag] - it = QtGui.QTreeWidgetItem(['%02d %s'%(song.getTrack() if song.getTrack() else 0, - song.getTitle() if song.getTitle() else song.getFilepath())], 1000) + it = QtGui.QTreeWidgetItem(['%02d %s'%(song.track() if song.track() else 0, + song.title() if song.title() else song.filepath())], 1000) it.setData(0, QtCore.Qt.UserRole, QVariant(song)) cur_item[1].addChild(it) @@ -149,7 +149,7 @@ class LibraryWidget(QtGui.QWidget): def item_to_playlist(self, item, add_queue): if item.type() == 1000: - add_queue.append(item.data(0, QtCore.Qt.UserRole).toPyObject().getFilepath()) + add_queue.append(item.data(0, QtCore.Qt.UserRole).toPyObject().filepath()) else: for i in range(item.childCount()): self.item_to_playlist(item.child(i), add_queue) |