[rhythmbox] artsearch: use our idea of the artist name, not musicbrainz's
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] artsearch: use our idea of the artist name, not musicbrainz's
- Date: Mon, 31 Jan 2022 10:38:47 +0000 (UTC)
commit 025bff93436a8bc5f113fac23554c4b3c029ba27
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Jan 30 10:55:28 2022 +1000
artsearch: use our idea of the artist name, not musicbrainz's
If the artist names differ (usually due to capitalisation) then
the original search won't find the stored image, making the whole
exercise kind of pointless.
plugins/artsearch/musicbrainz.py | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/plugins/artsearch/musicbrainz.py b/plugins/artsearch/musicbrainz.py
index 8c422d280..79723ae2c 100644
--- a/plugins/artsearch/musicbrainz.py
+++ b/plugins/artsearch/musicbrainz.py
@@ -92,12 +92,8 @@ class MusicBrainzSearch(object):
if len(artist_tags) > 0:
artist_id = artist_tags[0].attributes['id'].firstChild.data
if artist_id != MUSICBRAINZ_VARIOUS_ARTISTS:
- # add the artist name (as album-artist) to the storage key
- nametags = artist_tags[0].getElementsByTagName('name')
- if len(nametags) > 0:
- artistname = nametags[0].firstChild.data
- print("got musicbrainz artist name %s" % artistname)
- storekey.add_field('artist', artistname)
+ # add the artist name to the storage key
+ storekey.add_field('artist', key.get_field('artist'))
urls = []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]