From 1d31903cdc094cab73c81d73c19af467feac96e3 Mon Sep 17 00:00:00 2001 From: blth Date: Sun, 17 Apr 2016 12:55:16 -0600 Subject: [PATCH] Update RipUtils.java --- .../java/com/rarchives/ripme/utils/RipUtils.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/utils/RipUtils.java b/src/main/java/com/rarchives/ripme/utils/RipUtils.java index f21fb6cd..073d4717 100644 --- a/src/main/java/com/rarchives/ripme/utils/RipUtils.java +++ b/src/main/java/com/rarchives/ripme/utils/RipUtils.java @@ -21,6 +21,8 @@ import com.rarchives.ripme.ripper.rippers.ImgurRipper.ImgurAlbum; import com.rarchives.ripme.ripper.rippers.ImgurRipper.ImgurImage; import com.rarchives.ripme.ripper.rippers.VidbleRipper; import com.rarchives.ripme.ripper.rippers.video.GfycatRipper; +import com.rarchives.ripme.ripper.rippers.EroShareRipper; + public class RipUtils { private static final Logger logger = Logger.getLogger(RipUtils.class); @@ -69,7 +71,7 @@ public class RipUtils { } return result; } - else if (url.toExternalForm().contains("vidble.com/album/")) { + else if (url.toExternalForm().contains("vidble.com/album/") || url.toExternalForm().contains("vidble.com/show/")) { try { logger.info("Getting vidble album " + url); result.addAll(VidbleRipper.getURLsFromPage(url)); @@ -79,6 +81,16 @@ public class RipUtils { } return result; } + else if (url.toExternalForm().contains("eroshare.com")) { + try { + logger.info("Getting eroshare album " + url); + result.addAll(EroShareRipper.getURLs(url)); + } catch (IOException e) { + // Do nothing + logger.warn("Exception while retrieving eroshare page:", e); + } + return result; + } Pattern p = Pattern.compile("https?://i.reddituploads.com/([a-zA-Z0-9]+)\\?.*"); Matcher m = p.matcher(url.toExternalForm());