Blacklist artist images from echonest using dead last.fm server.

(cherry picked from commit 5b4c0c920c)
This commit is contained in:
John Maguire 2016-02-17 13:57:39 +00:00
parent 42c21f0d03
commit 4bba0fda09
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ void EchoNestImages::RequestFinished() {
}
for (const Echonest::ArtistImage& image : request->artist_->images()) {
emit ImageReady(request->id_, image.url());
// Echonest still sends these broken URLs for last.fm.
if (image.url().authority() != "userserve-ak.last.fm") {
emit ImageReady(request->id_, image.url());
}
}
emit Finished(request->id_);