nah, that's better...

This commit is contained in:
gexce
2017-09-25 08:59:43 +02:00
parent 0e11b9accd
commit c9c4fb1528
@@ -62,16 +62,17 @@ public class EntryDownloader implements CommandLineRunner {
lastPage = entrylist.lastPage;
for (int i = 0; i < entrylist.entries.length; i++) {
File targetDir = new File("E:\\" + entrylist.entries[i].mediaAssistantId);
if (targetDir.exists()) {
log.info("Skip " + entrylist.entries[i].mediaAssistantId + ", target directory already present");
continue;
}
try {
String entryJson = restTemplate.exchange(mamHost + "/rest/migration/entry/{id}", HttpMethod.GET, entity, String.class, entrylist.entries[i].mediaAssistantId).getBody();
Entry entry = jsonMapper.readValue(entryJson, Entry.class);
File targetDir = new File("E:\\" + entry.id);
if (targetDir.exists()) {
log.info("Skip " + entry.id + ", target directory already present");
continue;
}
List<Download> downloadSelection = new ArrayList<Download>();
// Select download: Download original only. If original is not available, download largest file