[rhythmbox] artsearch: fix dumb mistakes in local cover art search
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] artsearch: fix dumb mistakes in local cover art search
- Date: Fri, 13 Jan 2012 09:31:53 +0000 (UTC)
commit 0be3d3f7f96816853616edc816374f373fa8fed8
Author: Jonathan Matthew <jonathan d14n org>
Date: Fri Jan 13 19:30:30 2012 +1000
artsearch: fix dumb mistakes in local cover art search
plugins/artsearch/local.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/artsearch/local.py b/plugins/artsearch/local.py
index b14eb91..b134774 100644
--- a/plugins/artsearch/local.py
+++ b/plugins/artsearch/local.py
@@ -52,7 +52,7 @@ class LocalSearch:
parent = self.file.get_parent()
ordered = []
key = RB.ExtDBKey.create_storage("album", self.album)
- key.add_field("artist", self.artist)
+ key.add_field("artist", self.artists[0])
# Compare lower case, without file extension
for name in [file_root (self.file.get_basename())] + IMAGE_NAMES:
@@ -129,7 +129,7 @@ class LocalSearch:
def search (self, key, last_time, store, callback, args):
# ignore last_time
- location = key.get_field("location")
+ location = key.get_info("location")
if location is None:
print "not searching, we don't have a location"
callback(args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]