add bili qrcode by tangsan
This commit is contained in:
parent
0b664bf018
commit
5e8b9e27ff
|
|
@ -9,6 +9,7 @@ import android.view.Gravity;
|
||||||
import android.webkit.CookieManager;
|
import android.webkit.CookieManager;
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
|
||||||
import com.github.catvod.bean.Class;
|
import com.github.catvod.bean.Class;
|
||||||
import com.github.catvod.bean.Result;
|
import com.github.catvod.bean.Result;
|
||||||
import com.github.catvod.bean.Vod;
|
import com.github.catvod.bean.Vod;
|
||||||
|
|
@ -195,7 +196,6 @@ public class Bili extends Spider {
|
||||||
checkService();
|
checkService();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
||||||
private void loadWebView() {
|
private void loadWebView() {
|
||||||
CookieManager cookieManager = CookieManager.getInstance();
|
CookieManager cookieManager = CookieManager.getInstance();
|
||||||
|
|
@ -206,7 +206,7 @@ public class Bili extends Spider {
|
||||||
OkHttp.stringNoRedirect(finalUrl, getHeaders(), respHeaderMap);
|
OkHttp.stringNoRedirect(finalUrl, getHeaders(), respHeaderMap);
|
||||||
cookie = "";
|
cookie = "";
|
||||||
for (String kk : Objects.requireNonNull(respHeaderMap.get("set-cookie"))) {
|
for (String kk : Objects.requireNonNull(respHeaderMap.get("set-cookie"))) {
|
||||||
cookie += kk.split(";")[0] + ";";
|
cookie = cookie.concat(kk.split(";")[0] + ";");
|
||||||
}
|
}
|
||||||
Prefers.put("BiliCookie", cookie);
|
Prefers.put("BiliCookie", cookie);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
a3a0ad16814a815fdad26b236cdd5a05
|
5b77e550fc0e997d1c7ec4dc9eca695a
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;a3a0ad16814a815fdad26b236cdd5a05",
|
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;5b77e550fc0e997d1c7ec4dc9eca695a",
|
||||||
"wallpaper": "https://gao.chuqiuyu.tk",
|
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;a3a0ad16814a815fdad26b236cdd5a05",
|
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;5b77e550fc0e997d1c7ec4dc9eca695a",
|
||||||
"wallpaper": "http://饭太硬.ga/深色壁纸/api.php",
|
"wallpaper": "http://饭太硬.ga/深色壁纸/api.php",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue