git://git.nikiroo.be
/
fanfix-jexer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8590da1
)
opening html files was not OK anymore
author
Niki Roo
<niki@nikiroo.be>
Thu, 21 Mar 2019 08:15:05 +0000
(09:15 +0100)
committer
Niki Roo
<niki@nikiroo.be>
Thu, 21 Mar 2019 08:15:05 +0000
(09:15 +0100)
src/be/nikiroo/fanfix/library/LocalLibrary.java
patch
|
blob
|
blame
|
history
diff --git
a/src/be/nikiroo/fanfix/library/LocalLibrary.java
b/src/be/nikiroo/fanfix/library/LocalLibrary.java
index 90e10c3024a61949762fe6a95fb30b5472e0f54c..d0bf61a44b30453f0972bb3c6c9b99d2588df161 100644
(file)
--- 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);
}
});