From: Niki Roo Date: Sun, 12 May 2019 10:57:04 +0000 (+0200) Subject: fix lib X-Git-Tag: fanfix-3.0.0~60 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=210465c33ff5e9b45e7afe808c18b23c4cf14b38;p=fanfix.git fix lib --- diff --git a/src/be/nikiroo/fanfix/library/RemoteLibrary.java b/src/be/nikiroo/fanfix/library/RemoteLibrary.java index 6e3380b..f1ff214 100644 --- a/src/be/nikiroo/fanfix/library/RemoteLibrary.java +++ b/src/be/nikiroo/fanfix/library/RemoteLibrary.java @@ -143,11 +143,11 @@ public class RemoteLibrary extends BasicLibrary { @Override protected void onError(Exception e) { - // if (e instanceof SSLException) { - result[0] = Status.UNAUTHORIZED; - // } else { - // result[0] = Status.UNAVAILABLE; - // } + if (e instanceof SSLException) { + result[0] = Status.UNAUTHORIZED; + } else { + result[0] = Status.UNAVAILABLE; + } } }.connect(); } catch (UnknownHostException e) { diff --git a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java index 1f288ab..015fb7b 100644 --- a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java +++ b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java @@ -209,7 +209,16 @@ public class RemoteLibraryServer extends ServerObject { forcePgDoneSent(pg); } else { - metas.add(Instance.getLibrary().getInfo((String) args[0])); + MetaData meta = Instance.getLibrary().getInfo((String) args[0]); + MetaData light; + if (meta.getCover() == null) { + light = meta; + } else { + light = meta.clone(); + light.setCover(null); + } + + metas.add(light); } if (!whitelist.isEmpty()) {