diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-10-19 21:51:45 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-10-19 21:51:45 +0000 |
| commit | 4e2034621e7c09c39ba4d5f0240540ac97414e94 (patch) | |
| tree | dfc8ccf9fb0dd178744d034e2ee6bd16e5a6a8e4 /src/plugins/General/mpris | |
| parent | c74607021fb0cde12833dfc113b1a25546baffab (diff) | |
| download | qmmp-4e2034621e7c09c39ba4d5f0240540ac97414e94.tar.gz qmmp-4e2034621e7c09c39ba4d5f0240540ac97414e94.tar.bz2 qmmp-4e2034621e7c09c39ba4d5f0240540ac97414e94.zip | |
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
Diffstat (limited to 'src/plugins/General/mpris')
| -rw-r--r-- | src/plugins/General/mpris/playerobject.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
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)); |
