[kupfer] rhythmbox: Use .jpg extension for Rhythmbox cover art
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] rhythmbox: Use .jpg extension for Rhythmbox cover art
- Date: Mon, 4 Apr 2011 11:42:34 +0000 (UTC)
commit a164f28cae0c174fb6ac4afb74b1c4a3ad0b5cb2
Author: William Friesen <wfriesen gmail com>
Date: Mon Apr 4 16:04:49 2011 +1000
rhythmbox: Use .jpg extension for Rhythmbox cover art
Prevously this function would always return None, as it was not looking
for the full file name + extension
kupfer/plugin/rhythmbox.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/rhythmbox.py b/kupfer/plugin/rhythmbox.py
index 328c9e3..066cc76 100644
--- a/kupfer/plugin/rhythmbox.py
+++ b/kupfer/plugin/rhythmbox.py
@@ -281,7 +281,8 @@ class AlbumLeaf (TrackCollection):
artist = self.object[0]["artist"]
album = unicode(self)
bs_artist_album = \
- " - ".join([us.encode("ascii", "ignore") for us in (artist, album)])
+ " - ".join([us.encode("ascii", "ignore") for us in (artist, album)]) \
+ + ".jpg"
return config.get_cache_file(("rhythmbox", "covers", bs_artist_album))
def get_thumbnail(self, width, height):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]