Bili support ext cookie

This commit is contained in:
FongMi 2023-07-08 20:43:38 +08:00
parent 924e25ee96
commit fa2cd95806
3 changed files with 5 additions and 6 deletions

View File

@ -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.

View File

@ -1 +1 @@
d8e5ff04fdf6cd4ac3449cd6acc257ee 6dc6afab6529c61d12fe9cd22aae56a3