even harder

This commit is contained in:
gexce
2017-09-25 11:09:37 +02:00
parent c9c4fb1528
commit 2f055ba36d
@@ -63,9 +63,10 @@ public class EntryDownloader implements CommandLineRunner {
for (int i = 0; i < entrylist.entries.length; i++) {
File targetDir = new File("E:\\" + entrylist.entries[i].mediaAssistantId);
Integer entryId = Integer.parseInt(entrylist.entries[i].mediaAssistantId);
File targetDir = new File("E:\\" + entryId);
if (targetDir.exists()) {
log.info("Skip " + entrylist.entries[i].mediaAssistantId + ", target directory already present");
log.info("Skip " + entryId + ", target directory already present");
continue;
}
@@ -136,7 +137,7 @@ public class EntryDownloader implements CommandLineRunner {
}
}
catch (HttpClientErrorException hcee) {
log.error(hcee.getMessage());
log.error("ID " + entry.id + ": " + hcee.getMessage());
hcee.printStackTrace();
}