mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-03 20:57:35 +01:00
Cope with receiving no images from spotify
(cherry picked from commit 4cd20ffdaa7cd5aa5a780d3bdca682d453caf7f6)
This commit is contained in:
parent
2219f88484
commit
8d2911bc32
@ -125,7 +125,9 @@ void EchoNestImages::DoSpotifyImageRequest(const QString& id, int request_id) {
|
||||
return (a.second.height() * a.second.width()) <
|
||||
(b.second.height() * b.second.width());
|
||||
});
|
||||
emit ImageReady(request_id, image_urls.last().first);
|
||||
if (!image_urls.isEmpty()) {
|
||||
emit ImageReady(request_id, image_urls.last().first);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user