1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-09-01 01:51:56 +02:00

new URI instead of new URL, erotiv.

This commit is contained in:
soloturn
2023-12-29 11:08:08 +01:00
parent eddcd12e61
commit f5153de8cf

View File

@@ -2,6 +2,8 @@ package com.rarchives.ripme.ripper.rippers;
import java.io.IOException; import java.io.IOException;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL; import java.net.URL;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -56,8 +58,8 @@ public class ErotivRipper extends AbstractHTMLRipper {
} }
@Override @Override
public URL sanitizeURL(URL url) throws MalformedURLException { public URL sanitizeURL(URL url) throws MalformedURLException, URISyntaxException {
return new URL(url.toExternalForm().replaceAll("https?://www.erotiv.io", "https://erotiv.io")); return new URI(url.toExternalForm().replaceAll("https?://www.erotiv.io", "https://erotiv.io")).toURL();
} }
@Override @Override