|
|
|
|
@ -105,10 +105,14 @@ public class CustomWebView extends WebView { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private boolean isVideoFormat(String url, Map<String, String> headers) { |
|
|
|
|
Site site = ApiConfig.get().getSite(key); |
|
|
|
|
Spider spider = ApiConfig.get().getCSP(site); |
|
|
|
|
if (spider.manualVideoCheck()) return spider.isVideoFormat(url); |
|
|
|
|
return Utils.isVideoFormat(url, headers); |
|
|
|
|
try { |
|
|
|
|
Site site = ApiConfig.get().getSite(key); |
|
|
|
|
Spider spider = ApiConfig.get().getCSP(site); |
|
|
|
|
if (spider.manualVideoCheck()) return spider.isVideoFormat(url); |
|
|
|
|
return Utils.isVideoFormat(url, headers); |
|
|
|
|
} catch (Exception ignored) { |
|
|
|
|
return Utils.isVideoFormat(url, headers); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void post(Map<String, String> headers, String url) { |
|
|
|
|
|