Update
This commit is contained in:
parent
f4f6c4e8e6
commit
c5ed153182
|
|
@ -46,6 +46,10 @@ public abstract class Spider {
|
|||
return "";
|
||||
}
|
||||
|
||||
public String liveContent() throws Exception {
|
||||
return "";
|
||||
}
|
||||
|
||||
public boolean manualVideoCheck() throws Exception {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ package com.github.catvod.utils;
|
|||
|
||||
import android.os.Environment;
|
||||
|
||||
import com.github.catvod.spider.Init;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
|
|
@ -26,10 +28,22 @@ public class Path {
|
|||
return Environment.getExternalStorageDirectory();
|
||||
}
|
||||
|
||||
public static File cache() {
|
||||
return Init.context().getCacheDir();
|
||||
}
|
||||
|
||||
public static File files() {
|
||||
return Init.context().getFilesDir();
|
||||
}
|
||||
|
||||
public static File tv() {
|
||||
return mkdir(new File(root() + File.separator + "TV"));
|
||||
}
|
||||
|
||||
public static File cache(String path) {
|
||||
return mkdir(new File(cache(), path));
|
||||
}
|
||||
|
||||
public static File tv(String name) {
|
||||
if (!name.startsWith(".")) name = "." + name;
|
||||
return new File(tv(), name);
|
||||
|
|
@ -71,6 +85,13 @@ public class Path {
|
|||
}
|
||||
}
|
||||
|
||||
public static void copy(File in, File out) {
|
||||
try {
|
||||
copy(new FileInputStream(in), out);
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
public static void copy(InputStream in, File out) {
|
||||
try {
|
||||
int read;
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
707f0db5d14e50ee046fc2c8a7a11383
|
||||
2ddcc31660e47389276c89f443d4bf4c
|
||||
|
|
|
|||
Loading…
Reference in New Issue