Scrobbler: Allow album artists to be "Various Artists"

Fixes #1082
This commit is contained in:
Jonas Kvinge
2022-12-27 21:15:20 +01:00
parent fee63891ac
commit fac4ad5313
6 changed files with 20 additions and 22 deletions

View File

@@ -28,15 +28,13 @@
#include <QObject>
#include <QString>
#include "core/song.h"
class ScrobblerCacheItem : public QObject {
Q_OBJECT
public:
explicit ScrobblerCacheItem(const QString &artist, const QString &album, const QString &song, const QString &albumartist, const int track, const qint64 duration, const quint64 timestamp, QObject *parent = nullptr);
QString effective_albumartist() const { return albumartist_.isEmpty() || albumartist_.compare(Song::kVariousArtists, Qt::CaseInsensitive) == 0 ? artist_ : albumartist_; }
QString effective_albumartist() const { return albumartist_.isEmpty() ? artist_ : albumartist_; }
public:
QString artist_;