From 7c0cefdde40f1ee86b45d39b20ed526b45365260 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 16 Aug 2016 17:44:27 +0000 Subject: 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 --- src/plugins/General/mpris/mpris2/player2object.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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(m_trackID); if(m_core->metaData(Qmmp::URL).startsWith("/")) map["xesam:url"] = QUrl::fromLocalFile(m_core->metaData(Qmmp::URL)).toString(); -- cgit v1.2.3-13-gbd6f