// return;\r
// Path status = Paths.get(mediaFilePath.getParent().toString(), ".STATUS",\r
// mediaFile.getName() + ".json");\r
- // if (!status.toFile().exists()) {\r
+ // if (!Files.exists(status)) {\r
// System.out.println("Nincs JSON: " + mediaFile.getAbsolutePath());\r
// }\r
//\r
\r
private void rescue_archive(RescueNEXIOMaterials processor, String clipName, long duration) throws Exception {\r
/*\r
- int nexioPort, String nexioUserName, String nexioPassword, String archiveFtp, String archiveUserName, String archivePassword,\r
- int nexioKillDateDays, String nexioAgency, IItemManager manager\r
- */\r
+ * int nexioPort, String nexioUserName, String nexioPassword, String archiveFtp,\r
+ * String archiveUserName, String archivePassword, int nexioKillDateDays, String\r
+ * nexioAgency, IItemManager manager\r
+ */\r
\r
RundownArchive ra = processor.processRundow(clipName, duration);\r
if (ra != null) {\r
\r
}\r
\r
- \r
public int getClipDuration(String name) throws Exception {\r
int duration = 0;\r
Controller controller = new Controller("10.10.1.55");\r
try {\r
Xid xid = new Xid(name);\r
Clip clip = mediabase.getClip(xid);\r
- \r
+\r
if (clip != null)\r
duration = clip.getDuration();\r
- //System.out.println(name + " duration: " + duration);\r
+ // System.out.println(name + " duration: " + duration);\r
} catch (Exception e) {\r
System.err.println(e.getMessage());\r
} finally {\r
}\r
return duration;\r
}\r
- \r
+\r
@Test\r
public void test_check_archived_rundownstories() throws Exception {\r
OctopusAPI octopus = new OctopusAPI();\r
for (BasicDBObject mos : mosObjects) {\r
String mosId = mos.getString(IOctopusAPI.OBJ_ID);\r
if (archived.contains(mosId)) {\r
- //System.out.println(mosId);\r
+ // System.out.println(mosId);\r
} else {\r
int duration = getClipDuration(mosId);\r
- \r
+\r
if (duration > 1)\r
System.out.println("Not archived " + mosId + ", duration " + duration);\r
- else\r
- if (duration != 1)\r
- System.out.println("Missing " + mosId);\r
+ else if (duration != 1)\r
+ System.out.println("Missing " + mosId);\r
}\r
}\r
\r