summaryrefslogtreecommitdiff
path: root/plugins/lastfm
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-01-09 23:11:24 +0100
committerGravatar waker <wakeroid@gmail.com>2012-01-09 23:11:24 +0100
commit84844f6742414fc7d2b1218bb285e9f3b21e7576 (patch)
tree1ad39cf8be2d41cee9224a8aa929b842875fcbbc /plugins/lastfm
parentff45addab62a5ed655938e66165f610720f5ff6d (diff)
lastfm: fixed artist/albumartist/band priority, artist is now picked 1st, before anything else
Diffstat (limited to 'plugins/lastfm')
-rw-r--r--plugins/lastfm/lastfm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/lastfm/lastfm.c b/plugins/lastfm/lastfm.c
index 8ee7eb88..8a5af425 100644
--- a/plugins/lastfm/lastfm.c
+++ b/plugins/lastfm/lastfm.c
@@ -318,15 +318,15 @@ 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, "band");
+ *a = deadbeef->pl_find_meta (song, "artist");
if (!(*a)) {
- *a = deadbeef->pl_find_meta (song, "album artist");
+ *a = deadbeef->pl_find_meta (song, "band");
}
if (!(*a)) {
- *a = deadbeef->pl_find_meta (song, "albumartist");
+ *a = deadbeef->pl_find_meta (song, "album artist");
}
if (!(*a)) {
- *a = deadbeef->pl_find_meta (song, "artist");
+ *a = deadbeef->pl_find_meta (song, "albumartist");
}
if (!*a) {
return -1;