git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorSweidan Omar <TFS\sweidan.omar>
Mon, 6 Dec 2021 12:22:40 +0000 (12:22 +0000)
committerSweidan Omar <TFS\sweidan.omar>
Mon, 6 Dec 2021 12:22:40 +0000 (12:22 +0000)
server/user.jobengine.executors/src/user/jobengine/server/steps/AttachLowresStep.java

index 7b1d15a9753196e535c14d64f53cb8198374eeb8..c833de7e015f1555905fc6c2bad4b39c973f24dc 100644 (file)
@@ -21,9 +21,9 @@ import user.jobengine.db.Store;
 import user.jobengine.server.steps.shared.EscortFiles;\r
 \r
 public class AttachLowresStep extends JobStep {\r
-       private static final int POLL_INTERVALL = 3000;\r
+//     private static final int POLL_INTERVALL = 3000;\r
        private static final String MP4EXT = ".MP4";\r
-       private static final String MXFEXT = ".MXF";\r
+//     private static final String MXFEXT = ".MXF";\r
        private static final String LOWRES_FILETYPE = "Low-res";\r
        private static final Logger logger = LogManager.getLogger();\r
        private IItemManager manager;\r
@@ -73,7 +73,8 @@ public class AttachLowresStep extends JobStep {
                        String transcodedFileName = transcodedFilePath.getFileName().toString();\r
                        String targetPath = null;\r
                        if (transcodedFileName.indexOf(".") > 2) {\r
-                               Path subdir = Paths.get(transcodedFileName.substring(0, 1), transcodedFileName.substring(1, 2), transcodedFileName.substring(2, 3));\r
+                               Path subdir = Paths.get(transcodedFileName.substring(0, 1), transcodedFileName.substring(1, 2),\r
+                                               transcodedFileName.substring(2, 3));\r
                                EscortFiles.ensureUNCFolder(webPath, subdir.toString());\r
                                targetPath = Paths.get(subdir.toString(), transcodedFileName).toString();\r
                        } else {\r
@@ -93,7 +94,8 @@ public class AttachLowresStep extends JobStep {
                        manager.createMediaFile(targetPath, fileType, store, mediaCubeMedia).add();\r
                } catch (IOException e) {\r
                        logger.catching(e);\r
-                       logger.error(marker, "A '{}' állomány mozgatása a '{}' helyre nem sikerült.", transcodedFilePath, lowresPath);\r
+                       logger.error(marker, "A '{}' állomány mozgatása a '{}' helyre nem sikerült.", transcodedFilePath,\r
+                                       lowresPath);\r
                        throw e;\r
                }\r
        }\r