From ace84b868befbdb4e96f85cec99bd85f52342306 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Fri, 23 Mar 2018 23:06:43 -0400 Subject: [PATCH] IG ripper now uses display_url when downloading images --- .../com/rarchives/ripme/ripper/rippers/InstagramRipper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java index bb2998f8..b38c2c08 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java @@ -284,9 +284,9 @@ public class InstagramRipper extends AbstractHTMLRipper { if (imageURLs.size() == 0) { // We add this one item to the array because either wise // the ripper will error out because we returned an empty array - imageURLs.add(getOriginalUrl(data.getString("thumbnail_src"))); + imageURLs.add(getOriginalUrl(data.getString("display_url"))); } - addURLToDownload(new URL(getOriginalUrl(data.getString("thumbnail_src"))), image_date); + addURLToDownload(new URL(data.getString("display_url")), image_date); } else { if (!Utils.getConfigBoolean("instagram.download_images_only", false)) { addURLToDownload(new URL(getVideoFromPage(data.getString("shortcode"))), image_date);