aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/mpris
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-08-16 17:44:27 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-08-16 17:44:27 +0000
commit7c0cefdde40f1ee86b45d39b20ed526b45365260 (patch)
tree016042222095360b6d16f372f4db97775771eadb /src/plugins/General/mpris
parentac58d0e3a75c291d868d70d8d0bcae5cca9fbcd7 (diff)
downloadqmmp-7c0cefdde40f1ee86b45d39b20ed526b45365260.tar.gz
qmmp-7c0cefdde40f1ee86b45d39b20ed526b45365260.tar.bz2
qmmp-7c0cefdde40f1ee86b45d39b20ed526b45365260.zip
mpris2: added xesam:contentCreated field
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6677 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/mpris')
-rw-r--r--src/plugins/General/mpris/mpris2/player2object.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/General/mpris/mpris2/player2object.cpp b/src/plugins/General/mpris/mpris2/player2object.cpp
index 3168c6c53..aa754d942 100644
--- a/src/plugins/General/mpris/mpris2/player2object.cpp
+++ b/src/plugins/General/mpris/mpris2/player2object.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2010-2015 by Ilya Kotov *
+ * Copyright (C) 2010-2016 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -150,6 +150,8 @@ QVariantMap Player2Object::metadata() const
map["xesam:title"] = m_core->metaData(Qmmp::TITLE);
if(!m_core->metaData(Qmmp::TRACK).isEmpty())
map["xesam:trackNumber"] = m_core->metaData(Qmmp::TRACK).toInt();
+ if(!m_core->metaData(Qmmp::YEAR).isEmpty())
+ map["xesam:contentCreated"] = m_core->metaData(Qmmp::YEAR);
map["mpris:trackid"] = QVariant::fromValue<QDBusObjectPath>(m_trackID);
if(m_core->metaData(Qmmp::URL).startsWith("/"))
map["xesam:url"] = QUrl::fromLocalFile(m_core->metaData(Qmmp::URL)).toString();