even harder
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user