From 726e303a08e2f890adf0f1613b4c02c23cfaacce Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sun, 15 Jul 2018 15:03:56 -0400 Subject: [PATCH] improved how riputils gets imgur mp4s --- src/main/java/com/rarchives/ripme/utils/RipUtils.java | 2 +- 1 file changed, 1 insertion(+), 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 00db501a..e7ffce65 100644 --- a/src/main/java/com/rarchives/ripme/utils/RipUtils.java +++ b/src/main/java/com/rarchives/ripme/utils/RipUtils.java @@ -57,7 +57,7 @@ public class RipUtils { } 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"))); + result.add(new URL(url.toExternalForm().replaceAll(".gifv", ".mp4"))); } catch (IOException e) { logger.info("Couldn't get gifv from " + url); }