From 68e7add076f6def730014d7ad4f66382ca311429 Mon Sep 17 00:00:00 2001 From: Diogo Pereira Date: Fri, 3 Jul 2015 15:17:12 +0100 Subject: [PATCH] Send album artist to Last.fm Older versions of liblastfm do not support this, so it is only enabled when compiling with liblastfm >= 1.0.0. --- src/core/song.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/song.cpp b/src/core/song.cpp index 63bce78a4..799546a09 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -998,6 +998,9 @@ void Song::ToLastFM(lastfm::Track* track, bool prefer_album_artist) const { } else { mtrack.setArtist(d->artist_); } +#if LASTFM_MAJOR_VERSION >= 1 + mtrack.setAlbumArtist(d->albumartist_); +#endif mtrack.setAlbum(d->album_); mtrack.setTitle(d->title_); mtrack.setDuration(length_nanosec() / kNsecPerSec);