From a49453ad8ade9d9cb0b6c08096b00cc7330ca4e0 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 12 Oct 2009 21:11:16 +0000 Subject: mpris plugin: added 'arturl' key git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1310 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/mpris/playerobject.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/General/mpris/playerobject.cpp b/src/plugins/General/mpris/playerobject.cpp index c043a2e63..fbdd9c854 100644 --- a/src/plugins/General/mpris/playerobject.cpp +++ b/src/plugins/General/mpris/playerobject.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -128,7 +129,10 @@ QVariantMap PlayerObject::GetMetadata() QVariantMap map; if (QFile::exists(m_core->metaData(Qmmp::URL))) - map.insert("location", "file://" +m_core->metaData(Qmmp::URL)); + { + map.insert("location", "file://" + m_core->metaData(Qmmp::URL)); + map.insert("arturl", MetaDataManager::instance()->getCoverPath(m_core->metaData(Qmmp::URL))); + } else map.insert("location", m_core->metaData(Qmmp::URL)); map.insert("title", m_core->metaData(Qmmp::TITLE)); -- cgit v1.2.3-13-gbd6f