X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fsupported%2FHtml.java;h=5fe28397e66936698a73dec7c64787bc08a43730;hp=c7db5d83ce3c0f16d1525dbb591f9453571cd420;hb=60f723111f3f7f5bd60760afa7d0b645406b48d7;hpb=efdbabcde03fdcdac05c917e1fbc671d621a93a3 diff --git a/src/be/nikiroo/fanfix/supported/Html.java b/src/be/nikiroo/fanfix/supported/Html.java index c7db5d8..5fe2839 100644 --- a/src/be/nikiroo/fanfix/supported/Html.java +++ b/src/be/nikiroo/fanfix/supported/Html.java @@ -32,6 +32,23 @@ class Html extends InfoText { return false; } + @Override + protected File getInfoFile() { + File source = getSourceFile(); + if ("index.html".equals(source.getName())) { + source = source.getParentFile(); + } + + String src = source.getPath(); + File infoFile = new File(src + ".info"); + if (!infoFile.exists() && src.endsWith(".txt")) { + infoFile = new File( + src.substring(0, src.length() - ".txt".length()) + ".info"); + } + + return infoFile; + } + @Override public URL getCanonicalUrl(URL source) { File txt = getTxt(source);