git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sercer: fix one arg cmd, traces
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
fanfix
/
library
/
RemoteLibrary.java
diff --git
a/src/be/nikiroo/fanfix/library/RemoteLibrary.java
b/src/be/nikiroo/fanfix/library/RemoteLibrary.java
index 884eee9a114d2c40853fb6659044bf4b0b3122e9..3318c12bf7e5f55e743091aede40e9998d28ccd0 100644
(file)
--- a/
src/be/nikiroo/fanfix/library/RemoteLibrary.java
+++ b/
src/be/nikiroo/fanfix/library/RemoteLibrary.java
@@
-134,8
+134,8
@@
public class RemoteLibrary extends BasicLibrary {
new ConnectActionClientObject(host, port, false) {
@Override
public void action(Version serverVersion) throws Exception {
new ConnectActionClientObject(host, port, false) {
@Override
public void action(Version serverVersion) throws Exception {
- Object rep = sendCmd(this,
-
new Object[] {
"GET_CUSTOM_COVER", type, source });
+ Object rep = sendCmd(this,
new Object[] {
+ "GET_CUSTOM_COVER", type, source });
result[0] = (Image) rep;
}
result[0] = (Image) rep;
}
@@
-177,8
+177,7
@@
public class RemoteLibrary extends BasicLibrary {
}
List<Object> list = new ArrayList<Object>();
}
List<Object> list = new ArrayList<Object>();
- for (Object obj = send(null); obj != null; obj = send(
- null)) {
+ for (Object obj = send(null); obj != null; obj = send(null)) {
list.add(obj);
pg.add(1);
}
list.add(obj);
pg.add(1);
}
@@
-500,9
+499,8
@@
public class RemoteLibrary extends BasicLibrary {
pg = new Progress();
}
pg = new Progress();
}
-
- Object rep = sendCmd(this,
- new Object[] { "GET_METADATA", luid });
+ Object rep = sendCmd(this, new Object[] { "GET_METADATA",
+ luid });
while (true) {
if (!RemoteLibraryServer.updateProgress(pg, rep)) {
while (true) {
if (!RemoteLibraryServer.updateProgress(pg, rep)) {
@@
-540,11
+538,6
@@
public class RemoteLibrary extends BasicLibrary {
Object rep = action.send(params);
String hash = hashKey(key, "" + rep);
Object rep = action.send(params);
String hash = hashKey(key, "" + rep);
- rep = action.send(hash);
- if (rep == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
return action.send(hash);
}
return action.send(hash);
}