diff options
author | waker <wakeroid@gmail.com> | 2011-11-30 20:55:27 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-11-30 20:55:27 +0100 |
commit | 642d0cee5abbca27e4350a2d0c256551547d0c48 (patch) | |
tree | 8737badd637e814aecb40267470217cfd22d0533 /plugins/lastfm | |
parent | 25ab2e723f33dea14940268d1bcacab6f452f22d (diff) |
added albumartist support to lastfm
Diffstat (limited to 'plugins/lastfm')
-rw-r--r-- | plugins/lastfm/lastfm.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/lastfm/lastfm.c b/plugins/lastfm/lastfm.c index 17bc5a6b..533c32e9 100644 --- a/plugins/lastfm/lastfm.c +++ b/plugins/lastfm/lastfm.c @@ -318,7 +318,16 @@ fail: static int lfm_fetch_song_info (DB_playItem_t *song, const char **a, const char **t, const char **b, float *l, const char **n, const char **m) { - *a = deadbeef->pl_find_meta (song, "artist"); + *a = deadbeef->pl_find_meta (song, "band"); + if (!(*a)) { + *a = deadbeef->pl_find_meta (song, "album artist"); + } + if (!(*a)) { + *a = deadbeef->pl_find_meta (song, "albumartist"); + } + if (!(*a)) { + *a = deadbeef->pl_find_meta (song, "artist"); + } if (!*a) { return -1; } |