Update Push

This commit is contained in:
FongMi 2022-10-29 13:27:08 +08:00
parent 9ada8f37b7
commit 0fef3289b5
7 changed files with 6 additions and 10 deletions

View File

@ -23,9 +23,8 @@ public class Push extends Spider {
String url = ids.get(0).trim(); String url = ids.get(0).trim();
if (url.contains("aliyundrive")) return ali.detailContent(ids); if (url.contains("aliyundrive")) return ali.detailContent(ids);
if (Misc.isVip(url)) return Result.string(vod(url, "官源")); if (Misc.isVip(url)) return Result.string(vod(url, "官源"));
if (url.startsWith("magnet")) return Result.string(vod(url, "磁力")); if (Misc.isVideoFormat(url)) return Result.string(vod(url, "直連"));
if (url.startsWith("http") && url.endsWith("html")) return Result.string(vod(url, "網頁")); return Result.string(vod(url, "網頁"));
return Result.string(vod(url, "直連"));
} }
@Override @Override

View File

@ -31,7 +31,6 @@ public class Misc {
} }
public static boolean isVideoFormat(String url) { public static boolean isVideoFormat(String url) {
if (url.contains(".js") || url.contains(".css")) return false;
return Sniffer.RULE.matcher(url).find(); return Sniffer.RULE.matcher(url).find();
} }

View File

@ -6,8 +6,6 @@ public class Sniffer {
public static final Pattern RULE = Pattern.compile( public static final Pattern RULE = Pattern.compile(
"http((?!http).){12,}?\\.(m3u8|mp4|flv|avi|mkv|rm|wmv|mpg|m4a)\\?.*|" + "http((?!http).){12,}?\\.(m3u8|mp4|flv|avi|mkv|rm|wmv|mpg|m4a)\\?.*|" +
"http((?!http).){12,}\\.(m3u8|mp4|flv|avi|mkv|rm|wmv|mpg|m4a)|" + "http((?!http).){12,}\\.(m3u8|mp4|flv|avi|mkv|rm|wmv|mpg|m4a)"
"http((?!http).)*?xg.php\\?id=|" +
"http((?!http).)*?video/tos*"
); );
} }

Binary file not shown.

View File

@ -1 +1 @@
262cbd619eec331739fb0f120533390e 9f41e0f17e45a009989248435542b4bc

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;262cbd619eec331739fb0f120533390e", "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;9f41e0f17e45a009989248435542b4bc",
"sites": [ "sites": [
{ {
"key": "AList", "key": "AList",

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;262cbd619eec331739fb0f120533390e", "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;9f41e0f17e45a009989248435542b4bc",
"sites": [ "sites": [
{ {
"key": "AList", "key": "AList",