From 269d892388920eb726c1b8b59ceecdece51b14e2 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Tue, 9 May 2017 15:36:27 -0400 Subject: [PATCH] Fixed SSL error with ep.xhamster domain (#520) --- .../com/rarchives/ripme/ripper/rippers/XhamsterRipper.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/XhamsterRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/XhamsterRipper.java index 20fdb955..6cf986a7 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/XhamsterRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/XhamsterRipper.java @@ -45,6 +45,7 @@ public class XhamsterRipper extends AlbumRipper { continue; } String image = thumb.attr("src"); + // replace thumbnail urls with the urls to the full sized images image = image.replaceAll( "https://upt.xhcdn\\.", "http://up.xhamster."); @@ -52,6 +53,11 @@ public class XhamsterRipper extends AlbumRipper { image = image.replaceAll( "_160\\.", "_1000."); + // Xhamster has shitty cert management and uses the wrong cert for their ep.xhamster Domain + // so we change all https requests to http + image = image.replaceAll( + "https://", + "http://"); index += 1; String prefix = ""; if (Utils.getConfigBoolean("download.save_order", true)) {