Bili support ext cookie
This commit is contained in:
parent
924e25ee96
commit
fa2cd95806
|
|
@ -81,11 +81,10 @@ public class Bili extends Spider {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setCookie() {
|
private void setCookie() {
|
||||||
String config = extend.get("cookie").getAsString();
|
cookie = extend.get("cookie").getAsString();
|
||||||
if (config.startsWith("http")) config = OkHttp.string(config).trim();
|
if (cookie.startsWith("http")) cookie = OkHttp.string(cookie).trim();
|
||||||
if (TextUtils.isEmpty(config)) config = COOKIE;
|
if (TextUtils.isEmpty(cookie)) cookie = FileUtil.read(getUserCache());
|
||||||
cookie = FileUtil.read(getUserCache());
|
if (TextUtils.isEmpty(cookie)) cookie = COOKIE;
|
||||||
cookie = cookie.isEmpty() ? config : cookie;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<Filter> getFilter() {
|
private List<Filter> getFilter() {
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
d8e5ff04fdf6cd4ac3449cd6acc257ee
|
6dc6afab6529c61d12fe9cd22aae56a3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue