Update Push
This commit is contained in:
parent
86b7ce8bf9
commit
c833362b70
|
|
@ -23,9 +23,8 @@ public class Push extends Spider {
|
|||
String url = ids.get(0).trim();
|
||||
if (url.contains("aliyundrive")) return ali.detailContent(ids);
|
||||
if (Misc.isVip(url)) return Result.string(vod(url, "官源"));
|
||||
if (url.startsWith("magnet")) return Result.string(vod(url, "磁力"));
|
||||
if (url.startsWith("http") && url.endsWith("html")) return Result.string(vod(url, "網頁"));
|
||||
return Result.string(vod(url, "直連"));
|
||||
if (Misc.isVideoFormat(url)) return Result.string(vod(url, "直連"));
|
||||
return Result.string(vod(url, "網頁"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ public class Misc {
|
|||
}
|
||||
|
||||
public static boolean isVideoFormat(String url) {
|
||||
if (url.contains(".js") || url.contains(".css")) return false;
|
||||
return Sniffer.RULE.matcher(url).find();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ public class Sniffer {
|
|||
|
||||
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).)*?xg.php\\?id=|" +
|
||||
"http((?!http).)*?video/tos*"
|
||||
"http((?!http).){12,}\\.(m3u8|mp4|flv|avi|mkv|rm|wmv|mpg|m4a)"
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
262cbd619eec331739fb0f120533390e
|
||||
9f41e0f17e45a009989248435542b4bc
|
||||
|
|
|
|||
Loading…
Reference in New Issue