Commit f6262ff6 authored by Alex Merry's avatar Alex Merry
Browse files

MPRIS: Actually use the cached we created

When we create a cached image (because we can't use the full-size one -
eg: it is embedded), actually use it.

I _think_ this should fix bug 301399.

CCBUG: 301399
parent 58017cdb
......@@ -141,7 +141,7 @@ Meta::Field::mprisMapFromTrack( const Meta::TrackPtr track )
// embedded id? Request a version to be put in the cache
debug() << "MPRIS: asking the image to be cached";
track->album()->image( MPRIS_IMAGE_SIZE );
url = track->album()->imageLocation().url();
url = track->album()->imageLocation( MPRIS_IMAGE_SIZE ).url();
}
if ( url.isValid() && url.isLocalFile() )
map["arturl"] = QString::fromLatin1( url.toEncoded() );
......@@ -193,7 +193,8 @@ Meta::Field::mpris20MapFromTrack( const Meta::TrackPtr track )
// embedded id? Request a version to be put in the cache
debug() << "MPRIS2: asking the image to be cached";
track->album()->image( MPRIS_IMAGE_SIZE );
url = track->album()->imageLocation().url();
url = track->album()->imageLocation( MPRIS_IMAGE_SIZE ).url();
debug() << "MPRIS2: New location is" << url;
}
if ( url.isValid() && url.isLocalFile() )
map["mpris:artUrl"] = QString::fromLatin1( url.toEncoded() );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment