Update Zhaozy

This commit is contained in:
FongMi 2023-01-30 17:46:59 +08:00
parent 055f3e7148
commit 2820be8ce7
3 changed files with 5 additions and 7 deletions

View File

@ -26,8 +26,8 @@ public class Zhaozy extends Spider {
private final Pattern regexAli = Pattern.compile("(https://www.aliyundrive.com/s/[^\"]+)"); private final Pattern regexAli = Pattern.compile("(https://www.aliyundrive.com/s/[^\"]+)");
private final Pattern regexVid = Pattern.compile("(\\S+)"); private final Pattern regexVid = Pattern.compile("(\\S+)");
private final String siteUrl = "https://zhaoziyuan.la/"; private final String siteUrl = "https://zhaoziyuan.la/";
private String username = "nikalo8893@bitvoo.com"; private String username;
private String password = "P@ssw0rd"; private String password;
private Map<String, String> getHeader() { private Map<String, String> getHeader() {
Map<String, String> headers = new HashMap<>(); Map<String, String> headers = new HashMap<>();
@ -56,11 +56,9 @@ public class Zhaozy extends Spider {
public void init(Context context, String extend) { public void init(Context context, String extend) {
String[] split = extend.split("\\$\\$\\$"); String[] split = extend.split("\\$\\$\\$");
Ali.get().init(split[0]); Ali.get().init(split[0]);
if (split.length > 2) {
username = split[1]; username = split[1];
password = split[2]; password = split[2];
} }
}
@Override @Override
public String detailContent(List<String> ids) throws Exception { public String detailContent(List<String> ids) throws Exception {

Binary file not shown.

View File

@ -1 +1 @@
d5d77424e72a6ade93621611b1114875 fb25839a41ad3ce40356acf31920373c