From 4e2034621e7c09c39ba4d5f0240540ac97414e94 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 19 Oct 2009 21:51:45 +0000 Subject: cue plugin: added cover support git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1330 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/mpris/playerobject.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/plugins/General') diff --git a/src/plugins/General/mpris/playerobject.cpp b/src/plugins/General/mpris/playerobject.cpp index fbdd9c854..894b68617 100644 --- a/src/plugins/General/mpris/playerobject.cpp +++ b/src/plugins/General/mpris/playerobject.cpp @@ -128,13 +128,11 @@ QVariantMap PlayerObject::GetMetadata() { QVariantMap map; - if (QFile::exists(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 + if (m_core->metaData(Qmmp::URL).contains("://")) map.insert("location", m_core->metaData(Qmmp::URL)); + else + map.insert("location", "file://" + m_core->metaData(Qmmp::URL)); + 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("album", m_core->metaData(Qmmp::ALBUM)); -- cgit v1.2.3-13-gbd6f