From 3f7b6711e3ea1c9f29333cb18867c196670b0228 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sun, 15 Jul 2018 14:39:14 -0400 Subject: [PATCH] getFilesFromURL now handles imgur gifvs --- src/main/java/com/rarchives/ripme/utils/RipUtils.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/rarchives/ripme/utils/RipUtils.java b/src/main/java/com/rarchives/ripme/utils/RipUtils.java index 9845145c..00db501a 100644 --- a/src/main/java/com/rarchives/ripme/utils/RipUtils.java +++ b/src/main/java/com/rarchives/ripme/utils/RipUtils.java @@ -54,6 +54,15 @@ public class RipUtils { } catch (IOException e) { logger.error("[!] Exception while loading album " + url, e); } + } else if (url.getHost().endsWith("i.imgur.com") && url.toExternalForm().contains("gifv")) { + // links to imgur gifvs + try { + result.add(new URL(Http.url(url).get().select("meta[itemprop=contentURL]").attr("content"))); + } catch (IOException e) { + logger.info("Couldn't get gifv from " + url); + } + return result; + } else if (url.getHost().endsWith("gfycat.com")) { try {