This commit is contained in:
lushunming 2024-11-05 13:39:17 +08:00
parent be0fd5f6ff
commit 239b2fa129
7 changed files with 13 additions and 14 deletions

View File

@ -47,7 +47,7 @@ public class UCApi {
private List<String> subtitleExts = Arrays.asList(".srt", ".ass", ".scc", ".stl", ".ttml");
private Map<String, String> saveFileIdCaches = new HashMap<>();
private String saveDirId = null;
private String saveDirName = "TV";
private final String saveDirName = "TV";
private boolean isVip = false;
private final Cache cache;
private ScheduledExecutorService service;
@ -267,11 +267,11 @@ public class UCApi {
private void initUserInfo() {
try {
SpiderDebug.log("initUserInfo...");
SpiderDebug.log("uc initUserInfo...");
//extend没有cookie从缓存中获取
if (StringUtils.isAllBlank(cookie)) {
SpiderDebug.log(" cookie from ext is empty...");
SpiderDebug.log("uc cookie from ext is empty...");
cookie = cache.getUser().getCookie();
}
//获取到cookie初始化uc并且把cookie缓存一次
@ -284,8 +284,8 @@ public class UCApi {
//没有cookie也没有serviceTicket抛出异常提示用户重新登录
if (StringUtils.isAllBlank(cookie) && StringUtils.isAllBlank(serviceTicket)) {
SpiderDebug.log("cookie为空");
throw new RuntimeException("cookie为空");
SpiderDebug.log("uccookie为空");
throw new RuntimeException("uccookie为空");
}
String token = serviceTicket;

View File

@ -1,12 +1,9 @@
package com.github.catvod.utils;
import android.os.Environment;
import com.github.catvod.crawler.SpiderDebug;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.*;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
@ -67,6 +64,8 @@ public class Path {
fos.close();
return file;
} catch (Exception ignored) {
ignored.printStackTrace();
SpiderDebug.log("写入文件出错:" + ignored.getMessage());
return file;
}
}

Binary file not shown.

View File

@ -1 +1 @@
3af27a422f8b3a1364db578ccabd2b22
0439cfe9d4680c40a374aa309835fbf0

View File

@ -1,5 +1,5 @@
{
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;3af27a422f8b3a1364db578ccabd2b22",
"spider": "https://ghp.ci/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/dev/jar/custom_spider.jar;md5;0439cfe9d4680c40a374aa309835fbf0",
"lives": [
{
"name": "直播ipv6",

View File

@ -1,5 +1,5 @@
{
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;3af27a422f8b3a1364db578ccabd2b22",
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;0439cfe9d4680c40a374aa309835fbf0",
"lives": [
{
"name": "直播ipv6",

View File

@ -1,5 +1,5 @@
{
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;3af27a422f8b3a1364db578ccabd2b22",
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;0439cfe9d4680c40a374aa309835fbf0",
"lives": [
{
"name": "直播ipv6",