From 2fbcdba1a8becefa5d10e746d47a2fa55a631080 Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Thu, 26 Jun 2014 00:10:44 -0700 Subject: [PATCH] 1.0.72 - Support for DeviantArt favourites for #82 --- pom.xml | 2 +- .../rarchives/ripme/ripper/rippers/DeviantartRipper.java | 6 ++++++ src/main/java/com/rarchives/ripme/ui/UpdateUtils.java | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 4bc7a149..0a4408a2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.rarchives.ripme ripme jar - 1.0.71 + 1.0.72 ripme http://rip.rarchives.com diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/DeviantartRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/DeviantartRipper.java index 5b201a07..2c88c690 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/DeviantartRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/DeviantartRipper.java @@ -74,6 +74,12 @@ public class DeviantartRipper extends AbstractHTMLRipper { // Subgallery return m.group(1) + "_" + m.group(2); } + p = Pattern.compile("^https?://([a-zA-Z0-9\\-]{1,})\\.deviantart\\.com/favou?rites/?$"); + m = p.matcher(url.toExternalForm()); + if (m.matches()) { + // Subgallery + return m.group(1) + "_faves"; + } throw new MalformedURLException("Expected URL format: http://username.deviantart.com/[/gallery/#####], got: " + url); } diff --git a/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java b/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java index bd8da101..b8704e06 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.0.71"; + private static final String DEFAULT_VERSION = "1.0.72"; 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";