CropAssetCopyTool
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user