From efdbabcde03fdcdac05c917e1fbc671d621a93a3 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Thu, 21 Mar 2019 09:15:05 +0100 Subject: [PATCH] opening html files was not OK anymore --- src/be/nikiroo/fanfix/library/LocalLibrary.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } }); -- 2.27.0