From: Niki Roo Date: Thu, 21 Mar 2019 08:15:05 +0000 (+0100) Subject: opening html files was not OK anymore X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=efdbabcde03fdcdac05c917e1fbc671d621a93a3;p=fanfix-jexer.git opening html files was not OK anymore --- diff --git a/src/be/nikiroo/fanfix/library/LocalLibrary.java b/src/be/nikiroo/fanfix/library/LocalLibrary.java index 90e10c3..d0bf61a 100644 --- a/src/be/nikiroo/fanfix/library/LocalLibrary.java +++ b/src/be/nikiroo/fanfix/library/LocalLibrary.java @@ -623,7 +623,8 @@ public class LocalLibrary extends BasicLibrary { boolean info = file != null && file.isFile() && file.getPath().toLowerCase().endsWith(".info"); boolean dir = file != null && file.isDirectory(); - return info || dir; + boolean isExpandedHtml = new File(file, "index.html").isFile(); + return info || (dir && !isExpandedHtml); } });