Adding .webm support to chan rippers

This commit is contained in:
4pr0n 2014-05-11 09:52:00 -07:00
parent a1c46746ce
commit 5e4df22b3c

View File

@ -99,8 +99,7 @@ public class ChanRipper extends AlbumRipper {
logger.debug("Skipping link that contains '=http' or 'imgops.com': " + link.attr("href")); logger.debug("Skipping link that contains '=http' or 'imgops.com': " + link.attr("href"));
continue; continue;
} }
System.err.println("URL=" + link.attr("href")); p = Pattern.compile("^.*\\.(jpg|jpeg|png|gif|webm)$", Pattern.CASE_INSENSITIVE);
p = Pattern.compile("^.*\\.(jpg|jpeg|png|gif)$", Pattern.CASE_INSENSITIVE);
m = p.matcher(link.attr("href")); m = p.matcher(link.attr("href"));
if (m.matches()) { if (m.matches()) {
String image = link.attr("href"); String image = link.attr("href");