mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-11 09:24:50 +01:00
Cope with receiving no images from spotify
This commit is contained in:
parent
52c72f95ba
commit
4cd20ffdaa
@ -125,7 +125,9 @@ void EchoNestImages::DoSpotifyImageRequest(const QString& id, int request_id) {
|
|||||||
return (a.second.height() * a.second.width()) <
|
return (a.second.height() * a.second.width()) <
|
||||||
(b.second.height() * b.second.width());
|
(b.second.height() * b.second.width());
|
||||||
});
|
});
|
||||||
|
if (!image_urls.isEmpty()) {
|
||||||
emit ImageReady(request_id, image_urls.last().first);
|
emit ImageReady(request_id, image_urls.last().first);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user