Fix ali cache on some tv devices
This commit is contained in:
parent
d874b760fd
commit
1ac83907c4
|
|
@ -11,12 +11,16 @@ import java.io.InputStreamReader;
|
||||||
|
|
||||||
public class FileUtil {
|
public class FileUtil {
|
||||||
|
|
||||||
public static File getCacheDir() {
|
public static File getExternalCacheDir() {
|
||||||
return Init.context().getExternalCacheDir();
|
return Init.context().getExternalCacheDir();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static File getCacheDir() {
|
||||||
|
return Init.context().getCacheDir();
|
||||||
|
}
|
||||||
|
|
||||||
public static File getCacheFile(String fileName) {
|
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) {
|
public static void write(File file, String data) {
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
ecddb20dad437ff099b1e777bc5545ab
|
5c42e2f85ec3f05bfd281e4fcf40468a
|
||||||
|
|
|
||||||
|
|
@ -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",
|
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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",
|
"wallpaper": "http://饭太硬.ga/深色壁纸/api.php",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue