|
|
|
|
@ -17,8 +17,8 @@ import java.util.regex.Pattern; |
|
|
|
|
public class Sniffer { |
|
|
|
|
|
|
|
|
|
public static final Pattern CLICKER = Pattern.compile("\\[a=cr:(\\{.*?\\})\\/](.*?)\\[\\/a]"); |
|
|
|
|
public static final Pattern AI_PUSH = Pattern.compile("(http|https|rtmp|rtsp|smb|ftp|thunder|magnet|ed2k|mitv|tvbox-xg|jianpian|video):[^\\s]+", Pattern.MULTILINE); |
|
|
|
|
public static final Pattern SNIFFER = Pattern.compile("http((?!http).){12,}?\\.(m3u8|mp4|mkv|flv|mp3|m4a|aac|mpd)\\?.*|http((?!http).){12,}\\.(m3u8|mp4|mkv|flv|mp3|m4a|aac|mpd)|http((?!http).)*?video/tos*|rtmp:[^\\s]+"); |
|
|
|
|
public static final Pattern AI_PUSH = Pattern.compile("(https?|rtmp|rtsp|smb|ftp|thunder|magnet|ed2k|mitv|tvbox-xg|jianpian|video):\\S+"); |
|
|
|
|
public static final Pattern SNIFFER = Pattern.compile("https?://[^\\s]{12,}\\.(?:m3u8|mp4|mkv|flv|mp3|m4a|aac|mpd)(?:\\?.*)?|https?://.*?video/tos[^\\s]*|rtmp:[^\\s]+"); |
|
|
|
|
|
|
|
|
|
public static String getUrl(String text) { |
|
|
|
|
if (Json.isObj(text) || text.contains("$")) return text; |
|
|
|
|
|