use a .summary file
[fanfix.git] / src / be / nikiroo / fanfix / library / LocalLibrary.java
index f655d4d03bb43b5df69d00fc8b30b2adbad6c113..25f2ec960627ab354295289f73a7c93d6bbbe3ed 100644 (file)
@@ -625,6 +625,18 @@ public class LocalLibrary extends BasicLibrary {
                        files.add(coverFile);
                }
 
+               String summaryExt = ".summary";
+               File summaryFile = new File(path + summaryExt);
+               if (!summaryFile.exists()) {
+                       summaryFile = new File(
+                                       path.substring(0, path.length() - fileExt.length())
+                                                       + summaryExt);
+               }
+
+               if (summaryFile.exists()) {
+                       files.add(summaryFile);
+               }
+
                return files;
        }