Blacklist artist images from echonest using dead last.fm server.
This commit is contained in:
parent
a80e241bbe
commit
5b4c0c920c
|
@ -55,7 +55,10 @@ void EchoNestImages::RequestFinished() {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const Echonest::ArtistImage& image : request->artist_->images()) {
|
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_);
|
emit Finished(request->id_);
|
||||||
|
|
Loading…
Reference in New Issue