mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-20 21:02:26 +02:00
Use full string in tempfile check.
This commit is contained in:
@@ -243,9 +243,9 @@ MprisPlugin::metadata() const
|
|||||||
metadataMap.insert( "xesam:artist", track->artist()->name() );
|
metadataMap.insert( "xesam:artist", track->artist()->name() );
|
||||||
metadataMap.insert( "xesam:title", track->track() );
|
metadataMap.insert( "xesam:title", track->track() );
|
||||||
|
|
||||||
// Only return art if tempfile exists, and if its name contains the same "artist_album"
|
// Only return art if tempfile exists, and if its name contains the same "artist_album_tomahawk_cover.png"
|
||||||
if( m_coverTempFile && m_coverTempFile->exists() &&
|
if( m_coverTempFile && m_coverTempFile->exists() &&
|
||||||
m_coverTempFile->fileName().contains( track->artist()->name() + "_" + track->album()->name() ) )
|
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", QFileInfo( *m_coverTempFile ).absoluteFilePath() );
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user