/*
- * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2 of the GNU General Public License
- * as published by the Free Software Foundation.
+ * Meviz - Various tools collection to work with multimedia. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
*/
+
package eu.svjatoslav.meviz.htmlindexer.metadata;
import eu.svjatoslav.commons.file.FilePathParser;
import java.io.Serializable;
import java.util.*;
-import static eu.svjatoslav.meviz.htmlindexer.AbstractIndexer.isImage;
-import static eu.svjatoslav.meviz.htmlindexer.AbstractIndexer.isVideo;
+import static eu.svjatoslav.meviz.htmlindexer.indexer.AbstractIndexer.isImage;
+import static eu.svjatoslav.meviz.htmlindexer.indexer.AbstractIndexer.isVideo;
/**
* Corresponds to single filesystem directory.
try {
return new Picture(parentDirectory, fileName);
} catch (final Exception exception) {
+ System.out.println("Failed to decode image \"" + fileName +"\" indexing as normal file instead.");
+
// in case image decoding failed, handle image as general file
return new GeneralFile(parentDirectory, fileName);
}