From 6c64f73daa11c69ecf086428e57bcf61a2d7dc0d Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Mon, 9 Jul 2018 11:38:14 -0400 Subject: [PATCH] Fixed minor bug with DeviantartRipper --- .../com/rarchives/ripme/ripper/rippers/DeviantartRipper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 10ef233a..04a1766f 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/DeviantartRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/DeviantartRipper.java @@ -260,13 +260,13 @@ public class DeviantartRipper extends AbstractJSONRipper { if (doc.html().contains("ismature")) { LOGGER.info("Downloading nsfw image"); String nsfwImage = getFullsizedNSFWImage(doc.select("span").attr("href")); - if (nsfwImage != null) { + if (nsfwImage != null && nsfwImage.startsWith("http")) { imageURLs.add(nsfwImage); } } try { String imageURL = doc.select("span").first().attr("data-super-full-img"); - if (!imageURL.isEmpty()) { + if (!imageURL.isEmpty() && imageURL.startsWith("http")) { imageURLs.add(imageURL); } } catch (NullPointerException e) {