1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-11 09:24:50 +01:00

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.
This commit is contained in:
Diogo Pereira 2015-07-03 15:17:12 +01:00
parent ebc5c143e3
commit 68e7add076

View File

@ -998,6 +998,9 @@ void Song::ToLastFM(lastfm::Track* track, bool prefer_album_artist) const {
} else { } else {
mtrack.setArtist(d->artist_); mtrack.setArtist(d->artist_);
} }
#if LASTFM_MAJOR_VERSION >= 1
mtrack.setAlbumArtist(d->albumartist_);
#endif
mtrack.setAlbum(d->album_); mtrack.setAlbum(d->album_);
mtrack.setTitle(d->title_); mtrack.setTitle(d->title_);
mtrack.setDuration(length_nanosec() / kNsecPerSec); mtrack.setDuration(length_nanosec() / kNsecPerSec);