DBCollection clips = db.getCollection(NEXIOCLIPS);\r
BasicDBObject clip = (BasicDBObject) clips.findOne(new BasicDBObject(LONGNAMEID, mosID));\r
if (clip == null) {\r
- logger.debug("File NOT exists: {}", mosID);\r
+ logger.debug("File {} NOT exists", mosID);\r
return null;\r
//throw new Exception(String.format("File NOT exists %s", mosID));\r
} else {\r
- logger.debug("File exists: {}", mosID);\r
+ logger.debug("File {} exists", mosID);\r
}\r
long duration = NoSQLUtils.asLong(clip, DURATION);\r
\r
if (duration == 0) {\r
- logger.debug("File exists with 0 length: {}", mosID);\r
+ logger.debug("File {} exists with 0 frame length", mosID);\r
+ return null;\r
+ }\r
+ if (duration == 1) {\r
+ logger.debug("File {} exists with 1 frame length", mosID);\r
return null;\r
}\r
return new FileArchive(mosID, duration);\r
\r
logger.info("Saving rundown {} {}", rundownID, rundownName);\r
copy(rundownArchive);\r
+ logger.info(systemMarker, "A '{}' tükör {}db bejátszójának archiválása sikeres volt", rundownArchive.getItemTitle(),\r
+ rundownArchive.getStoryArchives().size());\r
\r
db.getCollection(ARCHIVEDRUNDOWNS).save(currentRundownID);\r
} catch (Exception e) {\r
if (rundown == null || !rundown.containsKey(IOctopusAPI.ID))\r
continue;\r
BasicDBObject rundownWithStoryids = queryRundown(rundown, FIELDS_RUNDOWN_STORYIDS);\r
+ //TODO ez neha null?\r
long rundownId = rundownWithStoryids.getLong(IOctopusAPI.ID);\r
List<BasicDBObject> slugs = NoSQLUtils.asList(rundownWithStoryids, IOctopusAPI.SLUGS);\r
if (slugs == null)\r