Fix bug
This commit is contained in:
parent
9518f336c5
commit
b5774a4768
|
|
@ -34,7 +34,7 @@ public class Feiyang extends Spider {
|
||||||
@Override
|
@Override
|
||||||
public String liveContent(String url) {
|
public String liveContent(String url) {
|
||||||
int retry = 0;
|
int retry = 0;
|
||||||
while ((OkHttp.string(URL)).isEmpty() && retry++ < 10) SystemClock.sleep(250);
|
while ((OkHttp.string(URL)).isEmpty() && retry++ < 20) SystemClock.sleep(250);
|
||||||
return OkHttp.string(url.startsWith("http") ? url : URL + url);
|
return OkHttp.string(url.startsWith("http") ? url : URL + url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -55,7 +55,8 @@ public class Feiyang extends Spider {
|
||||||
if (md5.startsWith("http")) md5 = OkHttp.string(md5).trim();
|
if (md5.startsWith("http")) md5 = OkHttp.string(md5).trim();
|
||||||
if (Util.MD5(f_aio).equals(md5)) return;
|
if (Util.MD5(f_aio).equals(md5)) return;
|
||||||
try {
|
try {
|
||||||
download(f_aio, OkHttp.newCall(url).body().byteStream());
|
File file = Path.create(new File(Path.download(), AIO));
|
||||||
|
download(file, OkHttp.newCall(url).body().byteStream());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
963016ff591ca82b430d9863bc55f11f
|
326f3af6d449e9cf1ad021d925b58887
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue