@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) {
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()) {