Use proxy://

This commit is contained in:
FongMi 2025-04-23 17:35:17 +08:00
parent 2eba323da2
commit 09ec3bce69
5 changed files with 4 additions and 4 deletions

View File

@ -198,7 +198,7 @@ public class Bili extends Spider {
String dan = "https://api.bilibili.com/x/v1/dm/list.so?oid=".concat(cid);
for (int i = 0; i < acceptDesc.length; i++) {
url.add(acceptDesc[i]);
url.add(Proxy.getUrl() + "?do=bili" + "&aid=" + aid + "&cid=" + cid + "&qn=" + acceptQuality[i] + "&type=mpd");
url.add("proxy://do=bili" + "&aid=" + aid + "&cid=" + cid + "&qn=" + acceptQuality[i] + "&type=mpd");
}
return Result.get().url(url).danmaku(Arrays.asList(Danmaku.create().name("B站").url(dan))).dash().header(getHeader()).string();
}

View File

@ -104,7 +104,7 @@ public class Local extends Spider {
Vod vod = new Vod();
vod.setVodId(file.getAbsolutePath());
vod.setVodName(file.getName());
vod.setVodPic(file.isFile() ? Proxy.getUrl() + "?do=local&path=" + Base64.encodeToString(file.getAbsolutePath().getBytes(), Base64.DEFAULT | Base64.URL_SAFE) : Image.FOLDER);
vod.setVodPic(file.isFile() ? "proxy://do=local&path=" + Base64.encodeToString(file.getAbsolutePath().getBytes(), Base64.DEFAULT | Base64.URL_SAFE) : Image.FOLDER);
vod.setVodRemarks(format.format(file.lastModified()));
vod.setVodTag(file.isDirectory() ? "folder" : "file");
return vod;

View File

@ -174,7 +174,7 @@ public class WebDAV extends Spider {
}
private String getProxyUrl(String url) {
return Proxy.getUrl() + "?do=webdav&url=" + url;
return "proxy://do=webdav&url=" + url;
}
public static Object[] vod(Map<String, String> params) throws IOException {

Binary file not shown.

View File

@ -1 +1 @@
278348cbde9d2e7604de1cc53c37712d
7a874dee86be625792a7381dc0ce8e1f