// Search that ID and sourceUrl inside the list, if that instance is the first-found one, then get the file-data (there might be duplicate ID-sourceUrl instances, but only one of them has the file-data).
@ -173,11 +174,13 @@ public class PublicationsRetrieverPlugin {
size=data_2.getSize();
hash=data_2.getHash();
mimeType="application/pdf";// TODO - If support is added for other doc-formats other than "pdf", then make sure the "mime_type" is correctly specified.
foundAlreadyDownloadedFullText=true;
break;
}
}
// In case the "alreadyDownloaded" full-text is not found, we have an error.
error=newError(Error.ErrorType.couldRetry,comment+" | That ID-sourceUrl was not found inside the WorkerReport!");// We can still try to download it from the found docUrl, in the future.
if(!foundAlreadyDownloadedFullText)
error=newError(Error.ErrorType.couldRetry,comment+" | That ID-sourceUrl was not found inside the WorkerReport!");// We can still try to download it from the found docUrl, in the future.
}
elseif(!comment.equals(HttpConnUtils.docFileNotRetrievedMessage)){// If it was downloaded without an error.
fileLocation=comment;// This is the full-file-path.