From 2bfa77c1ff98c6a6ddd1a0f21762b782a446cbab Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 4 Dec 2011 07:48:27 +0100 Subject: [PATCH] * Potential fix for TWK-618: ArtUrl not properly encoded. --- src/libtomahawk/infosystem/infoplugins/unix/mprisplugin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libtomahawk/infosystem/infoplugins/unix/mprisplugin.cpp b/src/libtomahawk/infosystem/infoplugins/unix/mprisplugin.cpp index 7725b68f2..801444198 100644 --- a/src/libtomahawk/infosystem/infoplugins/unix/mprisplugin.cpp +++ b/src/libtomahawk/infosystem/infoplugins/unix/mprisplugin.cpp @@ -258,7 +258,7 @@ MprisPlugin::metadata() const // Only return art if tempfile exists, and if its name contains the same "artist_album_tomahawk_cover.png" if( m_coverTempFile && m_coverTempFile->exists() && m_coverTempFile->fileName().contains( track->artist()->name() + "_" + track->album()->name() + "_tomahawk_cover.png" ) ) - metadataMap.insert( "mpris:artUrl", QFileInfo( *m_coverTempFile ).absoluteFilePath() ); + metadataMap.insert( "mpris:artUrl", QUrl::fromLocalFile( QFileInfo( *m_coverTempFile ).absoluteFilePath() ).toString() ); else { // Need to fetch the album cover @@ -275,7 +275,6 @@ MprisPlugin::metadata() const Tomahawk::InfoSystem::InfoSystem::instance()->getInfo( requestData ); } - } return metadataMap;