X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fsupported%2FInfoReader.java;h=ccffd7c9d27205713cfe6e623b3a8c4c56532aac;hb=2a25f7814eec9854022f1c9dee188bfbdb955591;hp=571f77b0a1cda5b08e6e775b257d9db8f27eb101;hpb=2d2a32227e37cb3be9c2b2259d1673f2dc0dc1cd;p=nikiroo-utils.git diff --git a/src/be/nikiroo/fanfix/supported/InfoReader.java b/src/be/nikiroo/fanfix/supported/InfoReader.java index 571f77b..ccffd7c 100644 --- a/src/be/nikiroo/fanfix/supported/InfoReader.java +++ b/src/be/nikiroo/fanfix/supported/InfoReader.java @@ -31,11 +31,11 @@ public class InfoReader { in.close(); in = null; } - } else { - throw new FileNotFoundException( - "File given as argument does not exists: " - + infoFile.getAbsolutePath()); } + + throw new FileNotFoundException( + "File given as argument does not exists: " + + infoFile.getAbsolutePath()); } private static MetaData createMeta(URL sourceInfoFile, InputStream in, @@ -64,8 +64,9 @@ public class InfoReader { if (info.endsWith(".info")) { info = info.substring(0, info.length() - ".info".length()); String ext = "." - + Instance.getConfig().getString( - Config.IMAGE_FORMAT_COVER); + + Instance.getConfig() + .getString(Config.IMAGE_FORMAT_COVER) + .toLowerCase(); meta.setCover(BasicSupport.getImage(null, sourceInfoFile, info + ext)); }