git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow subkeys, step 2
[fanfix.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 e7b98282b422786eb95a077056a987039984cbfd..6e3380b4a2239a074c26750436f8abc0df368e12 100644
(file)
--- a/
src/be/nikiroo/fanfix/library/RemoteLibrary.java
+++ b/
src/be/nikiroo/fanfix/library/RemoteLibrary.java
@@
-81,12
+81,12
@@
public class RemoteLibrary extends BasicLibrary {
public RemoteLibrary(String key, String host, int port) {
int index = -1;
if (key != null) {
public RemoteLibrary(String key, String host, int port) {
int index = -1;
if (key != null) {
- key.indexOf('|');
+
index =
key.indexOf('|');
}
if (index >= 0) {
}
if (index >= 0) {
- this.key = key.substring(
index + 1
);
- this.subkey = key.substring(
0, index
);
+ this.key = key.substring(
0, index
);
+ this.subkey = key.substring(
index + 1
);
} else {
this.key = key;
this.subkey = "";
} else {
this.key = key;
this.subkey = "";