fix typo in Enum i18n + fix Import
[fanfix.git] / src / be / nikiroo / fanfix / supported / InfoReader.java
index f589e6f30787e8fe6c8e4841e4cf0f94e3b36724..57f021f203e68450c9926e372fb02f4d484fde9c 100644 (file)
@@ -14,7 +14,7 @@ import be.nikiroo.fanfix.Instance;
 import be.nikiroo.fanfix.bundles.Config;
 import be.nikiroo.fanfix.data.MetaData;
 import be.nikiroo.utils.Image;
-import be.nikiroo.utils.MarkableFileInputStream;
+import be.nikiroo.utils.streams.MarkableFileInputStream;
 
 // not complete: no "description" tag
 public class InfoReader {
@@ -25,8 +25,7 @@ public class InfoReader {
                }
 
                if (infoFile.exists()) {
-                       InputStream in = new MarkableFileInputStream(new FileInputStream(
-                                       infoFile));
+                       InputStream in = new MarkableFileInputStream(infoFile);
                        try {
                                return createMeta(infoFile.toURI().toURL(), in, withCover);
                        } finally {
@@ -110,7 +109,6 @@ public class InfoReader {
                        name = name.substring(0, pos);
                        basefile = new File(basefile.getParent(), name);
 
-System.out.println(">>> " + basefile);
                        cover = BasicSupportHelper.getImage(null, sourceInfoFile,
                                        basefile.getAbsolutePath() + ext);
                }