Fix last.fm cover art

This commit is contained in:
David Sansome 2010-05-16 22:31:59 +00:00
parent 4954a99867
commit 33e61f9eb8
1 changed files with 6 additions and 1 deletions

View File

@ -89,7 +89,12 @@ void OSD::SongChanged(const Song &song) {
waiting.summary = summary;
waiting.message = message_parts.join(", ");
if (show_art_) {
if (show_art_ && !song.image().isNull()) {
// The song has embedded art, so use that
AlbumArtLoaded(waiting, song.image());
} else if (show_art_) {
// Load the art in a background thread (maybe from a remote server),
// AlbumArtLoaded gets called when it's ready.
quint64 id = cover_loader_->Worker()->LoadImageAsync(
song.art_automatic(), song.art_manual());
waiting_for_album_art_.insert(id, waiting);