diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-08-24 20:46:27 +0200 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-08-24 20:46:27 +0200 |
commit | e4f46487145be0bbcd2aa278388a1b4b3ef78f54 (patch) | |
tree | 4e0170664bdc651c782601544572170d20090239 /nephilim/plugins/AlbumCover.py | |
parent | e7c01e7b53f02b24e6938d945e84453537f3fa31 (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/plugins/AlbumCover.py')
-rw-r--r-- | nephilim/plugins/AlbumCover.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nephilim/plugins/AlbumCover.py b/nephilim/plugins/AlbumCover.py index db4d6f8..01aa333 100644 --- a/nephilim/plugins/AlbumCover.py +++ b/nephilim/plugins/AlbumCover.py @@ -221,9 +221,9 @@ class AlbumCover(Plugin): url = QtCore.QUrl('http://ws.audioscrobbler.com/2.0/') url.setQueryItems([('api_key', 'c325945c67b3e8327e01e3afb7cdcf35'), ('method', 'album.getInfo'), - ('artist', song.artist()), - ('album', song.album()), - ('mbid', song.tag('MUSICBRAINZ_ALBUMID'))]) + ('artist', song['artist']), + ('album', song['album']), + ('mbid', song['MUSICBRAINZ_ALBUMID'])]) self.fetch2(song, url) self.rep.finished.connect(self.__handle_search_res) @@ -390,7 +390,7 @@ class AlbumCover(Plugin): self.__abort_fetch() file = QtGui.QFileDialog.getOpenFileName(None, - 'Select album cover for %s - %s'%(song.artist(), song.album()), + 'Select album cover for %s - %s'%(song['artist'], song['album']), self.__cover_dir, '') if not file: return |