opening html files was not OK anymore
authorNiki Roo <niki@nikiroo.be>
Thu, 21 Mar 2019 08:15:05 +0000 (09:15 +0100)
committerNiki Roo <niki@nikiroo.be>
Thu, 21 Mar 2019 08:15:05 +0000 (09:15 +0100)
src/be/nikiroo/fanfix/library/LocalLibrary.java

index 90e10c3024a61949762fe6a95fb30b5472e0f54c..d0bf61a44b30453f0972bb3c6c9b99d2588df161 100644 (file)
@@ -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);
                        }
                });