Fixed SSL error with ep.xhamster domain (#520)
This commit is contained in:
parent
a71fce5768
commit
269d892388
@ -45,6 +45,7 @@ public class XhamsterRipper extends AlbumRipper {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
String image = thumb.attr("src");
|
String image = thumb.attr("src");
|
||||||
|
// replace thumbnail urls with the urls to the full sized images
|
||||||
image = image.replaceAll(
|
image = image.replaceAll(
|
||||||
"https://upt.xhcdn\\.",
|
"https://upt.xhcdn\\.",
|
||||||
"http://up.xhamster.");
|
"http://up.xhamster.");
|
||||||
@ -52,6 +53,11 @@ public class XhamsterRipper extends AlbumRipper {
|
|||||||
image = image.replaceAll(
|
image = image.replaceAll(
|
||||||
"_160\\.",
|
"_160\\.",
|
||||||
"_1000.");
|
"_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;
|
index += 1;
|
||||||
String prefix = "";
|
String prefix = "";
|
||||||
if (Utils.getConfigBoolean("download.save_order", true)) {
|
if (Utils.getConfigBoolean("download.save_order", true)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user