private static final Logger logger = LogManager.getLogger();\r
private SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd-HHmmss");\r
\r
- private boolean check(Timestamp modified, Timestamp created, int duration, Media media, int videoFormat, int lastModifiedHours) {\r
+ private boolean check(Timestamp modified, Timestamp created, int duration, Media media, int videoFormat,\r
+ int lastModifiedHours) {\r
String title = media.getTitle();\r
\r
- //formatum\r
+ // formatum\r
if (!(videoFormat == 3 || videoFormat == 19)) {\r
logger.debug(getMarker(), "{} unsupported video format", videoFormat);\r
return false;\r
if (!checkModifiedByTime(title, modified, lastModifiedHours))\r
return false;\r
\r
- //utolso modositas\r
+ // utolso modositas\r
MediaFile mediaFile = getManager().getSystemMediaFile(media);\r
boolean isModified = true;\r
if (mediaFile == null) {\r
}\r
\r
private boolean checkModifiedByTime(String title, Timestamp modified, int lastModifiedHours) {\r
- //utolso modositas a mosthoz kepest\r
- //The result of this method can be a negative period if the end is before the start.\r
+ // utolso modositas a mosthoz kepest\r
+ // The result of this method can be a negative period if the end is before the\r
+ // start.\r
long modifiedHours = Duration.between(modified.toInstant(), Instant.now()).toHours();\r
if (modifiedHours < 0) {\r
- logger.info(getMarker(), "{} modification time greather than now", title);\r
+ logger.info(getMarker(), "{} modification time greater than now", title);\r
return false;\r
}\r
if (modifiedHours < lastModifiedHours) {\r
return null;\r
}\r
\r
- private void processClips(String storeName, StoreUri sourceStoreUri, StoreUri targetStoreUri, String outputPath, Iterator<Clip> clips,\r
- int lastModifiedHours) throws ClipNotFoundException, IOException, ProtocolException {\r
+ private void processClips(String storeName, StoreUri sourceStoreUri, StoreUri targetStoreUri, String outputPath,\r
+ Iterator<Clip> clips, int lastModifiedHours) throws ClipNotFoundException, IOException, ProtocolException {\r
int processed = 0;\r
while (clips.hasNext()) {\r
\r
int videoFormat = 0;\r
frames = clip.getDuration();\r
\r
- //ures clip\r
+ // ures clip\r
if (frames == 1)\r
continue;\r
\r
\r
if (createEscort && !title.contains("*")) {\r
String fileName = title + DOT_MXF;\r
- DownloadableMedia downloadable = DownloadableMedia.create(title, fileName, modified, created, frames, 0, sourceStoreUri.getId(),\r
- targetStoreUri.getId(), mediaId);\r
+ DownloadableMedia downloadable = DownloadableMedia.create(title, fileName, modified, created,\r
+ frames, 0, sourceStoreUri.getId(), targetStoreUri.getId(), mediaId);\r
String escortFileName = storeName + "." + downloadable.getString("fileName");\r
- if (EscortFiles.createMetadataIfNotExists(outputPath, escortFileName, downloadable.toPrettyString(""))) {\r
+ if (EscortFiles.createMetadataIfNotExists(outputPath, escortFileName,\r
+ downloadable.toPrettyString(""))) {\r
logger.info(getMarker(), "Archive status file created for {}", fileName);\r
} else {\r
logger.info(getMarker(), "Archive status file already exists for {}", fileName);\r
}\r
}\r
}\r
-\r
}\r