aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/mpris
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2014-09-22 17:16:26 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2014-09-22 17:16:26 +0000
commitb66a8c518cbaa660ca3b9d18a1d071b144e5a2ab (patch)
tree45c7f5c5f45f54636b60449b137aaee79fb1f8a9 /src/plugins/General/mpris
parent9f312260e06b7d3bc0a017e0dda4836d02f925e4 (diff)
downloadqmmp-b66a8c518cbaa660ca3b9d18a1d071b144e5a2ab.tar.gz
qmmp-b66a8c518cbaa660ca3b9d18a1d071b144e5a2ab.tar.bz2
qmmp-b66a8c518cbaa660ca3b9d18a1d071b144e5a2ab.zip
added 'album artist' field support (patch by Dmitry Misharov)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4509 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/mpris')
-rw-r--r--src/plugins/General/mpris/mpris1/playerobject.cpp1
-rw-r--r--src/plugins/General/mpris/mpris1/tracklistobject.cpp1
-rw-r--r--src/plugins/General/mpris/mpris2/player2object.cpp2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/General/mpris/mpris1/playerobject.cpp b/src/plugins/General/mpris/mpris1/playerobject.cpp
index 27c9ca9fa..ed1b499c3 100644
--- a/src/plugins/General/mpris/mpris1/playerobject.cpp
+++ b/src/plugins/General/mpris/mpris1/playerobject.cpp
@@ -135,6 +135,7 @@ QVariantMap PlayerObject::GetMetadata()
map.insert("arturl", MetaDataManager::instance()->getCoverPath(m_core->metaData(Qmmp::URL)));
map.insert("title", m_core->metaData(Qmmp::TITLE));
map.insert("artist", m_core->metaData(Qmmp::ARTIST));
+ map.insert("albumartist", m_core->metaData(Qmmp::ALBUMARTIST));
map.insert("album", m_core->metaData(Qmmp::ALBUM));
map.insert("tracknumber", m_core->metaData(Qmmp::TRACK));
map.insert("time", (quint32)m_core->totalTime()/1000);
diff --git a/src/plugins/General/mpris/mpris1/tracklistobject.cpp b/src/plugins/General/mpris/mpris1/tracklistobject.cpp
index 13c40c929..23740ff81 100644
--- a/src/plugins/General/mpris/mpris1/tracklistobject.cpp
+++ b/src/plugins/General/mpris/mpris1/tracklistobject.cpp
@@ -106,6 +106,7 @@ QVariantMap TrackListObject::GetMetadata(int in0)
map.insert("location", "file://" + track->url());
map.insert("title", track->value(Qmmp::TITLE));
map.insert("artist", track->value(Qmmp::ARTIST));
+ map.insert("albumartist", track->value(Qmmp::ALBUMARTIST));
map.insert("album", track->value(Qmmp::ALBUM));
map.insert("tracknumber", track->value(Qmmp::TRACK));
map.insert("time", (quint32)track->length());
diff --git a/src/plugins/General/mpris/mpris2/player2object.cpp b/src/plugins/General/mpris/mpris2/player2object.cpp
index e7fedac5e..9bf7e539e 100644
--- a/src/plugins/General/mpris/mpris2/player2object.cpp
+++ b/src/plugins/General/mpris/mpris2/player2object.cpp
@@ -136,6 +136,8 @@ QVariantMap Player2Object::metadata() const
map["xesam:album"] = m_core->metaData(Qmmp::ALBUM);
if(!m_core->metaData(Qmmp::ARTIST).isEmpty())
map["xesam:artist"] = QStringList() << m_core->metaData(Qmmp::ARTIST);
+ if(!m_core->metaData(Qmmp::ALBUMARTIST).isEmpty())
+ map["xesam:albumArtist"] = QStringList() << m_core->metaData(Qmmp::ALBUMARTIST);
if(!m_core->metaData(Qmmp::COMMENT).isEmpty())
map["xesam:comment"] = QStringList() << m_core->metaData(Qmmp::COMMENT);
if(!m_core->metaData(Qmmp::COMPOSER).isEmpty())