Add option to prefer album artist when sending scrobbles

Fixes #274
This commit is contained in:
Jonas Kvinge
2019-10-19 02:56:23 +02:00
parent 5844616ea8
commit e3a4cf1cf5
7 changed files with 27 additions and 6 deletions

View File

@@ -35,6 +35,8 @@ class ScrobblerCacheItem : public QObject {
explicit ScrobblerCacheItem(const QString &artist, const QString &album, const QString &song, const QString &albumartist, const int track, const qint64 duration, const quint64 &timestamp);
~ScrobblerCacheItem();
QString effective_albumartist() const { return albumartist_.isEmpty() ? artist_ : albumartist_; }
public:
QString artist_;
QString album_;