Apologies for bumping someone else's report thread, but if it helps other users I have this EventScript that will find cases where the logo has been downloaded instead of the deviation and reset them. I have it set to run on an Interval trigger every 6 hours (21600000ms) so it can pick up any downloads that are again incorrectly downloaded after being reset. My first run found around 28000 failures, dating back to mid-June.
Code:
var logFile = JD_HOME + "/da_reset.log";
function log(message) {
writeFile(logFile, '[' + new Date().toISOString() + '] ' + message, true);
}
// If downloads are running find those that:
// 1. match the size of the logo file (most selective)
// 2. on deviantart (just in case)
// 3. have a status text of "Finished"
if (isDownloadControllerRunning() && !isDownloadControllerStopping()) {
log('Download controller running, attempting to reset links ...');
var candidates = getAllDownloadLinks().filter(function(dl) {
return dl.getBytesTotal() === 10648 && dl.getUrl().indexOf('deviantart') !== -1 && dl.getStatus() != null && dl.getStatus().equals('Finished');
});
log('Number of possible broken downloads found: ' + candidates.length.toString());
for (var i = 0; i < candidates.length; i++) {
log('Resetting item ' + (i + 1).toString());
candidates[i].reset();
}
log('Reset job complete.');
}