diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-04-25 07:59:00 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-04-25 07:59:00 +0200 |
commit | 8901b6955f1c74436c2033b4a8ac43f01a067682 (patch) | |
tree | 84e45fc8bceb40a519b7a120c39d4761795e892a /nephilim/plugins | |
parent | b9789e36eb79307ddc0567d63b36c2419a414461 (diff) |
song: drop PlaylistEntryRef
It adds a lot of complexity for little real benefit.
Diffstat (limited to 'nephilim/plugins')
-rw-r--r-- | nephilim/plugins/Playlist.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nephilim/plugins/Playlist.py b/nephilim/plugins/Playlist.py index 05a8596..d7a2f4e 100644 --- a/nephilim/plugins/Playlist.py +++ b/nephilim/plugins/Playlist.py @@ -19,7 +19,6 @@ from PyQt4 import QtGui, QtCore from ..plugin import Plugin from ..common import MIMETYPES, SongsMimeData -from ..song import PlaylistEntryRef class Playlist(Plugin): # public, const @@ -145,7 +144,7 @@ class PlaylistTree(QtGui.QTreeWidget): self._cur_song = None self.clear() for song in songs: - item = PlaylistSongItem(PlaylistEntryRef(self.plugin.mpclient, song['id'])) + item = PlaylistSongItem(song) for i in range(len(columns)): item.setText(i, song['?' + columns[i]]) self.addTopLevelItem(item) |