CropAssetCopyTool

This commit is contained in:
gexce
2017-08-17 13:29:13 +02:00
parent 907ccf3643
commit 758eee4a2b
@@ -85,7 +85,7 @@ public class CropAssetCopyTool {
List fileList = zipFile.getFileHeaders(); List fileList = zipFile.getFileHeaders();
if (fileList.size() == 1) { if (fileList.size() == 1) {
log.info("Extracting " + videoFile.getAbsolutePath()); log.debug("Extracting " + videoFile.getAbsolutePath());
if (!dryRun) { if (!dryRun) {
zipFile.extractAll(videoTargetPath); zipFile.extractAll(videoTargetPath);
@@ -113,13 +113,13 @@ public class CropAssetCopyTool {
video++; video++;
} catch (ZipException e) { } catch (ZipException e) {
zipCorrupt++;
log.error("Skipping AssetID " + assetId + " - could not open ZIP file " + videoFile.getAbsolutePath()); log.error("Skipping AssetID " + assetId + " - could not open ZIP file " + videoFile.getAbsolutePath());
} }
} }
else { else {
wrongSize++; wrongSize++;
log.warn("Wrong file size for " + assetId + ": " + expectedSize + " != " + fileLength + " (" + targetName + ")"); log.warn("Wrong file size for " + assetId + ": expected " + expectedSize + ", found " + fileLength + " (" + targetName + ")");
zipCorrupt++;
} }
} }
else { else {