|
|
|
|
@ -82,12 +82,12 @@ public class JarLoader { |
|
|
|
|
|
|
|
|
|
public void parseJar(String key, String jar) { |
|
|
|
|
String[] texts = jar.split(";md5;"); |
|
|
|
|
String md5 = !jar.startsWith("file") && texts.length > 1 ? texts[1].trim() : ""; |
|
|
|
|
String md5 = texts.length > 1 ? texts[1].trim() : ""; |
|
|
|
|
jar = texts[0]; |
|
|
|
|
if (jar.startsWith("img+")) { |
|
|
|
|
load(key, Decoder.getSpider(jar, md5)); |
|
|
|
|
} else if (md5.length() > 0 && Util.equals(jar, md5)) { |
|
|
|
|
if (md5.length() > 0 && Util.equals(jar, md5)) { |
|
|
|
|
load(key, Path.jar(jar)); |
|
|
|
|
} else if (jar.startsWith("img+")) { |
|
|
|
|
load(key, Decoder.getSpider(jar)); |
|
|
|
|
} else if (jar.startsWith("http")) { |
|
|
|
|
load(key, download(jar)); |
|
|
|
|
} else if (jar.startsWith("file")) { |
|
|
|
|
|