Fix epub compatibility + cover image ext
[nikiroo-utils.git] / src / be / nikiroo / fanfix / library / LocalLibrary.java
index 4cdfb944e0cd7b62bdbdedadac580cefa61f895b..97863e7b29e7b26f7489895374405c414b5f6847 100644 (file)
@@ -128,7 +128,7 @@ public class LocalLibrary extends BasicLibrary {
        }
 
        @Override
-       protected void invalidateInfo(String luid) {
+       protected synchronized void invalidateInfo(String luid) {
                stories = null;
                sourceCovers = new HashMap<String, Image>();
        }
@@ -205,7 +205,7 @@ public class LocalLibrary extends BasicLibrary {
        @Override
        public void setSourceCover(String source, String luid) {
                sourceCovers.put(source, getCover(luid));
-               File cover = new File(getExpectedDir(source), ".cover.png");
+               File cover = new File(getExpectedDir(source), ".cover");
                try {
                        Instance.getCache().saveAsImage(sourceCovers.get(source), cover,
                                        true);
@@ -519,7 +519,7 @@ public class LocalLibrary extends BasicLibrary {
         */
        void setSourceCover(String source, Image coverImage) {
                sourceCovers.put(source, coverImage);
-               File cover = new File(getExpectedDir(source), ".cover.png");
+               File cover = new File(getExpectedDir(source), ".cover");
                try {
                        Instance.getCache().saveAsImage(sourceCovers.get(source), cover,
                                        true);