From: Niki Roo Date: Sun, 12 May 2019 10:57:04 +0000 (+0200) Subject: fix lib X-Git-Tag: fanfix-swing-0.0.1~12^2~97 X-Git-Url: http://git.nikiroo.be/?a=commitdiff_plain;h=210465c33ff5e9b45e7afe808c18b23c4cf14b38;p=fanfix-swing.git fix lib --- diff --git a/src/be/nikiroo/fanfix/library/RemoteLibrary.java b/src/be/nikiroo/fanfix/library/RemoteLibrary.java index 6e3380b4..f1ff214d 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 1f288ab7..015fb7bf 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()) {