Fix ali cache on some tv devices

This commit is contained in:
FongMi 2023-05-14 23:55:17 +08:00
parent d874b760fd
commit 1ac83907c4
5 changed files with 9 additions and 5 deletions

View File

@ -11,12 +11,16 @@ import java.io.InputStreamReader;
public class FileUtil {
public static File getCacheDir() {
public static File getExternalCacheDir() {
return Init.context().getExternalCacheDir();
}
public static File getCacheDir() {
return Init.context().getCacheDir();
}
public static File getCacheFile(String fileName) {
return new File(getCacheDir(), fileName);
return getExternalCacheDir().canWrite() ? new File(getExternalCacheDir(), fileName) : new File(getCacheDir(), fileName);
}
public static void write(File file, String data) {

Binary file not shown.

View File

@ -1 +1 @@
ecddb20dad437ff099b1e777bc5545ab
5c42e2f85ec3f05bfd281e4fcf40468a

View File

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

View File

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