From: Niki Roo Date: Thu, 21 Mar 2019 08:15:05 +0000 (+0100) Subject: opening html files was not OK anymore X-Git-Tag: fanfix-swing-0.0.1~12^2~223 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=efdbabcde03fdcdac05c917e1fbc671d621a93a3;p=fanfix-swing.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 90e10c30..d0bf61a4 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); } });