[grilo-plugins] AcoustID: Support fetching artist for song instead of release-group
- From: Victor Toso de Carvalho <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] AcoustID: Support fetching artist for song instead of release-group
- Date: Tue, 12 Jul 2016 09:25:10 +0000 (UTC)
commit 2f43e672f5ee55f7661afd2a7565d42e090b4758
Author: Saiful B. Khan <saifulbkhan gmail com>
Date: Thu Jul 7 18:45:35 2016 +0530
AcoustID: Support fetching artist for song instead of release-group
As acoustID source is meant to be used with a single audio piece at
a time, its GRL_METADATA_KEY_ARTIST should contain the song or
recording artist and not the album-artist (which could be from a
compilation album). Artist for the release group can be made
available in the future as GRL_METADATA_KEY_ALBUM_ARTIST.
https://bugzilla.gnome.org/show_bug.cgi?id=768520
src/lua-factory/sources/grl-acoustid.lua | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/lua-factory/sources/grl-acoustid.lua b/src/lua-factory/sources/grl-acoustid.lua
index 1b2cac1..ca7eb99 100644
--- a/src/lua-factory/sources/grl-acoustid.lua
+++ b/src/lua-factory/sources/grl-acoustid.lua
@@ -123,8 +123,8 @@ function build_media(results)
-- FIXME: related-keys on lua sources are in the TODO list
-- https://bugzilla.gnome.org/show_bug.cgi?id=756203
-- and for that reason we are only returning first of all metadata
- if album and album.artists and #album.artists > 0 then
- artist = album.artists[1]
+ if record and record.artists and #record.artists > 0 then
+ artist = record.artists[1]
media.artist = keys.artist and artist.name or nil
media.mb_artist_id = keys.mb_artist_id and artist.id or nil
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]