diff options
Diffstat (limited to 'plugins')
-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; } |