From: Sweidan Omar Date: Mon, 10 Jan 2022 13:27:34 +0000 (+0000) Subject: git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube... X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=891e9e60a35600b00ed830b54a6a71762d1b4fe0;p=mediacube.git git-tfs-id: [tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32698 --- diff --git a/server/-product/production/LOCAL/jobs/steps/CreateArchiveItemStep.java b/server/-product/production/LOCAL/jobs/steps/CreateArchiveItemStep.java index b169edf5..ec165e87 100644 --- a/server/-product/production/LOCAL/jobs/steps/CreateArchiveItemStep.java +++ b/server/-product/production/LOCAL/jobs/steps/CreateArchiveItemStep.java @@ -24,10 +24,12 @@ public class CreateArchiveItemStep extends JobStep { ArchiveItem archiveItem = null; try { - if (mediaCubeMedia.getMediaFilesCount() != 1) + if (mediaCubeMedia.getMediaFilesCount() != 1) { throw new Exception("Expected media count is 1, found " + mediaCubeMedia.getMediaFilesCount()); - if (mediaCubeMedia.getMediaFiles().get(0).getStoreId() != highResStore.getId()) + } + if (mediaCubeMedia.getMediaFiles().get(0).getStoreId() != highResStore.getId()) { throw new Exception("Expected media store is a high-res store"); + } String name = mediaCubeMedia.getMediaFileRealName(); archiveItem = new ArchiveItem();