mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 20:09:50 +01:00
Fix last.fm cover art
This commit is contained in:
parent
4954a99867
commit
33e61f9eb8
@ -89,7 +89,12 @@ void OSD::SongChanged(const Song &song) {
|
|||||||
waiting.summary = summary;
|
waiting.summary = summary;
|
||||||
waiting.message = message_parts.join(", ");
|
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(
|
quint64 id = cover_loader_->Worker()->LoadImageAsync(
|
||||||
song.art_automatic(), song.art_manual());
|
song.art_automatic(), song.art_manual());
|
||||||
waiting_for_album_art_.insert(id, waiting);
|
waiting_for_album_art_.insert(id, waiting);
|
||||||
|
Loading…
Reference in New Issue
Block a user