This commit is contained in:
FongMi 2024-07-23 12:14:05 +08:00
parent 8c1a21d880
commit 04ed4a777a
5 changed files with 13 additions and 7 deletions

View File

@ -53,10 +53,16 @@ public class Push extends Spider {
vod.setTypeName("FongMi"); vod.setTypeName("FongMi");
vod.setVodName(url.startsWith("file://") ? new File(url).getName() : url); vod.setVodName(url.startsWith("file://") ? new File(url).getName() : url);
if (url.startsWith("http") && url.contains("#")) url = url.replace("#", "***"); if (url.startsWith("http") && url.contains("#")) url = url.replace("#", "***");
String play = "播放$" + url; if (Util.isThunder(url)) {
boolean thunder = Util.isThunder(url); vod.setVodPlayUrl(url);
vod.setVodPlayUrl(thunder ? play : TextUtils.join("$$$", Arrays.asList(play, play, play))); vod.setVodPlayFrom("迅雷");
vod.setVodPlayFrom(thunder ? "迅雷" : TextUtils.join("$$$", Arrays.asList("直連", "嗅探", "解析"))); } else if (url.contains("$")) {
vod.setVodPlayFrom("直連");
vod.setVodPlayUrl(TextUtils.join("#", url.split("\n")));
} else {
vod.setVodPlayUrl(TextUtils.join("$$$", Arrays.asList(url, url, url)));
vod.setVodPlayFrom(TextUtils.join("$$$", Arrays.asList("直連", "嗅探", "解析")));
}
return vod; return vod;
} }

View File

@ -34,7 +34,7 @@ import okhttp3.Response;
*/ */
public class Xb6v extends Spider { public class Xb6v extends Spider {
private final String siteUrl = "http://www.xb6v.com"; private final String siteUrl = "https://www.xb6v.com";
private String nextSearchUrlPrefix; private String nextSearchUrlPrefix;
private String nextSearchUrlSuffix; private String nextSearchUrlSuffix;

View File

@ -29,7 +29,7 @@ public class Util {
public static final Pattern THUNDER = Pattern.compile("(magnet|thunder|ed2k):.*"); public static final Pattern THUNDER = Pattern.compile("(magnet|thunder|ed2k):.*");
public static final String CHROME = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"; public static final String CHROME = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36";
public static final String ACCEPT = "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"; public static final String ACCEPT = "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7";
public static final List<String> MEDIA = Arrays.asList("mp4", "mkv", "wmv", "flv", "avi", "iso", "mpg", "ts", "mp3", "aac", "flac", "m4a", "ape", "ogg"); public static final List<String> MEDIA = Arrays.asList("mp4", "mkv", "wmv", "flv", "avi", "iso", "mpg", "ts", "iso", "mp3", "aac", "flac", "m4a", "ape", "ogg");
public static final List<String> SUB = Arrays.asList("srt", "ass", "ssa", "vtt"); public static final List<String> SUB = Arrays.asList("srt", "ass", "ssa", "vtt");
public static boolean isVip(String url) { public static boolean isVip(String url) {

Binary file not shown.

View File

@ -1 +1 @@
2db0ca4bba291bb9357998923bea5c34 3eb80d3f9fc40b9470b262c4c66b39f6