Bili support ext cookie

This commit is contained in:
FongMi 2023-07-08 20:43:38 +08:00
parent 2212d183f0
commit c47bcec825
5 changed files with 7 additions and 8 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

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;d8e5ff04fdf6cd4ac3449cd6acc257ee", "spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;6dc6afab6529c61d12fe9cd22aae56a3",
"wallpaper": "https://gao.chuqiuyu.tk", "wallpaper": "https://gao.chuqiuyu.tk",
"sites": [ "sites": [
{ {

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;d8e5ff04fdf6cd4ac3449cd6acc257ee", "spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;6dc6afab6529c61d12fe9cd22aae56a3",
"wallpaper": "http://饭太硬.top/深色壁纸/api.php", "wallpaper": "http://饭太硬.top/深色壁纸/api.php",
"sites": [ "sites": [
{ {