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

This commit is contained in:
John Maguire 2016-02-17 13:57:39 +00:00
parent a80e241bbe
commit 5b4c0c920c
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_);