|
|
|
@ -69,7 +69,7 @@ public class Utils { |
|
|
|
|
|
|
|
|
|
|
|
public static boolean isVideoFormat(String url, Map<String, String> headers) { |
|
|
|
public static boolean isVideoFormat(String url, Map<String, String> headers) { |
|
|
|
if (Sniffer.CUSTOM.matcher(url).find()) return true; |
|
|
|
if (Sniffer.CUSTOM.matcher(url).find()) return true; |
|
|
|
if (headers.containsKey("Accept") && headers.get("Accept").contains("image")) return false; |
|
|
|
if (headers.containsKey("Accept") && headers.get("Accept").startsWith("image")) return false; |
|
|
|
if (url.contains(".js") || url.contains(".css")) return false; |
|
|
|
if (url.contains(".js") || url.contains(".css")) return false; |
|
|
|
return Sniffer.RULE.matcher(url).find(); |
|
|
|
return Sniffer.RULE.matcher(url).find(); |
|
|
|
} |
|
|
|
} |
|
|
|
|