X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Foutput%2FInfoCover.java;h=d8ca49a6876bcb1a759845d117b26cdd302bdfe6;hb=089e354e5efc0de39caa4df2f3987d573b71dcbc;hp=9227d3e440d9f9371506c160813b9827c029c851;hpb=9fe3f17729759e933d7687cc2838f7255f2c9283;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/output/InfoCover.java b/src/be/nikiroo/fanfix/output/InfoCover.java index 9227d3e..d8ca49a 100644 --- a/src/be/nikiroo/fanfix/output/InfoCover.java +++ b/src/be/nikiroo/fanfix/output/InfoCover.java @@ -46,8 +46,8 @@ public class InfoCover { meta.isImageDocument() ? "true" : "false"); writeMeta(infoWriter, "TYPE", meta.getType()); if (meta.getCover() != null) { - String format = Instance.getConfig() - .getString(Config.IMAGE_FORMAT_COVER).toLowerCase(); + String format = Instance.getInstance().getConfig() + .getString(Config.FILE_FORMAT_IMAGE_FORMAT_COVER).toLowerCase(); writeMeta(infoWriter, "COVER", targetName + "." + format); } else { writeMeta(infoWriter, "COVER", ""); @@ -71,12 +71,10 @@ public class InfoCover { MetaData meta) { if (meta != null && meta.getCover() != null) { try { - Instance.getCache().saveAsImage(meta.getCover(), - new File(targetDir, targetName), true); + Instance.getInstance().getCache().saveAsImage(meta.getCover(), new File(targetDir, targetName), true); } catch (IOException e) { // Allow to continue without cover - Instance.getTraceHandler().error( - new IOException("Failed to save the cover image", e)); + Instance.getInstance().getTraceHandler().error(new IOException("Failed to save the cover image", e)); } } }