Fix cover file not sent over wire
[fanfix.git] / src / be / nikiroo / fanfix / library / BasicLibrary.java
index 66fb94355b538a94c900279bf0278675e6e5d9e3..4c32e3c2a6cbb68d85efb17a3df113026c82ef4d 100644 (file)
@@ -319,15 +319,19 @@ abstract public class BasicLibrary {
                                        if (type != null) {
                                                story = BasicSupport.getSupport(type).process(url,
                                                                pgProcess);
+                                               // Because we do not want to clear the meta cache:
+                                               meta.setCover(story.getMeta().getCover());
                                                story.setMeta(meta);
+                                               //
                                        } else {
                                                throw new IOException("Unknown type: " + meta.getType());
                                        }
                                } catch (IOException e) {
                                        // We should not have not-supported files in the
                                        // library
-                                       Instance.getTraceHandler().error(new IOException(
-                                                       "Cannot load file from library: " + file, e));
+                                       Instance.getTraceHandler().error(
+                                                       new IOException("Cannot load file from library: "
+                                                                       + file, e));
                                } finally {
                                        pgProcess.done();
                                        pg.done();