From 3ab45a6ee3c92838219322e77a7e3d1c6c1fd17a Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sat, 16 Mar 2019 20:27:24 +0100 Subject: [PATCH] improve perf for getCover --- src/be/nikiroo/fanfix/library/LocalLibrary.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/be/nikiroo/fanfix/library/LocalLibrary.java b/src/be/nikiroo/fanfix/library/LocalLibrary.java index 50f9ac01..93bf7ba2 100644 --- a/src/be/nikiroo/fanfix/library/LocalLibrary.java +++ b/src/be/nikiroo/fanfix/library/LocalLibrary.java @@ -123,6 +123,10 @@ public class LocalLibrary extends BasicLibrary { public Image getCover(String luid) { MetaData meta = getInfo(luid); if (meta != null) { + if (meta.getCover() != null) { + return meta.getCover(); + } + File[] files = getStories(null).get(meta); if (files != null) { File infoFile = files[0]; -- 2.27.0