From 210465c33ff5e9b45e7afe808c18b23c4cf14b38 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sun, 12 May 2019 12:57:04 +0200 Subject: [PATCH] fix lib --- src/be/nikiroo/fanfix/library/RemoteLibrary.java | 10 +++++----- .../nikiroo/fanfix/library/RemoteLibraryServer.java | 11 ++++++++++- 2 files changed, 15 insertions(+), 6 deletions(-) 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()) { -- 2.27.0