Fix 18av
This commit is contained in:
parent
4b7b789023
commit
1ca51ac6ae
|
|
@ -93,6 +93,16 @@ public class Eighteen extends Spider {
|
|||
return Result.get().parse().url(url + id).string();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean manualVideoCheck() throws Exception {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isVideoFormat(String url) throws Exception {
|
||||
return !url.contains("afcdn.net") && url.contains(".mp4");
|
||||
}
|
||||
|
||||
private String searchContent(String key, String pg) {
|
||||
HashMap<String, String> params = new HashMap<>();
|
||||
params.put("search_keyword", key);
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ public class Util {
|
|||
}
|
||||
|
||||
public static boolean isMedia(String text) {
|
||||
return MEDIA.contains(getExt(text));
|
||||
return MEDIA.contains(getExt(text).toLowerCase());
|
||||
}
|
||||
|
||||
public static String getExt(String name) {
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
8327a95a4336dac3f0177f08056d3165
|
||||
994f86fc0ed7b55fd03914d9ffbb251c
|
||||
|
|
|
|||
Loading…
Reference in New Issue