qDebug()<<"Picture NOT found, download failed, moving to next set (newset: "<<cardBeingDownloaded.getSetName()<<" card: "<<cardBeingDownloaded.getCard()->getCorrectedName()<<")";
mutex.lock();
loadQueue.prepend(cardBeingDownloaded);
mutex.unlock();
emitstartLoadQueue();
}else{
qDebug()<<"Picture NOT found, download failed, no more sets to try: BAILING OUT (oldset: "<<cardBeingDownloaded.getSetName()<<" card: "<<cardBeingDownloaded.getCard()->getCorrectedName()<<")";
qDebug()<<"Picture downloaded, but blacklisted ("<<md5sum<<"), will consider it as not found";
picDownloadFailed();
reply->deleteLater();
startNextPicDownload();
return;
}
QImagetestImage;
QImageReaderimgReader;
imgReader.setDecideFormatFromContent(true);
imgReader.setDevice(reply);
QStringextension="."+imgReader.format();//the format is determined prior to reading the QImageReader data into a QImage object, as that wipes the QImageReader buffer