From 407a19a4832a7b1fb86c9793c3bd1759388268fe Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Sat, 19 Dec 2015 10:08:30 -0800 Subject: [PATCH] Update imagefap ripper. Closes #271 --- pom.xml | 2 +- .../java/com/rarchives/ripme/ripper/rippers/ImagefapRipper.java | 1 + src/main/java/com/rarchives/ripme/ui/UpdateUtils.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d7f9b478..58af7ff0 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.rarchives.ripme ripme jar - 1.2.1 + 1.2.2 ripme http://rip.rarchives.com diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/ImagefapRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/ImagefapRipper.java index ac8cc4a4..ad6a82ae 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/ImagefapRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/ImagefapRipper.java @@ -129,6 +129,7 @@ public class ImagefapRipper extends AbstractHTMLRipper { image = image.replaceAll( "http://x.*.fap.to/images/thumb/", "http://fap.to/images/full/"); + image = image.replaceAll("w[0-9]{1,}-h[0-9]{1,}/", ""); imageURLs.add(image); if (isThisATest()) { break; diff --git a/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java b/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java index bcce617b..31633425 100644 --- a/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java +++ b/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java @@ -21,7 +21,7 @@ import com.rarchives.ripme.utils.Utils; public class UpdateUtils { private static final Logger logger = Logger.getLogger(UpdateUtils.class); - private static final String DEFAULT_VERSION = "1.2.1"; + private static final String DEFAULT_VERSION = "1.2.2"; private static final String updateJsonURL = "http://rarchives.com/ripme.json"; private static final String updateJarURL = "http://rarchives.com/ripme.jar"; private static final String mainFileName = "ripme.jar";