diff --git a/src/main/java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java b/src/main/java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java index 83276aea..122c0ffe 100644 --- a/src/main/java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java @@ -3,8 +3,7 @@ package com.rarchives.ripme.ripper; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; -import java.net.MalformedURLException; -import java.net.URL; +import java.net.*; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; @@ -104,7 +103,7 @@ public abstract class AbstractHTMLRipper extends AbstractRipper { } @Override - public void rip() throws IOException { + public void rip() throws IOException, URISyntaxException { int index = 0; int textindex = 0; LOGGER.info("Retrieving " + this.url); diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/MrCongRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/MrCongRipper.java index d0a7b571..642c6417 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/MrCongRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/MrCongRipper.java @@ -5,6 +5,7 @@ import com.rarchives.ripme.utils.Http; import java.io.IOException; import java.net.MalformedURLException; import java.net.URI; +import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.List; @@ -214,7 +215,7 @@ public class MrCongRipper extends AbstractHTMLRipper { mcr.rip(); } - } catch (IOException e) { + } catch (IOException | URISyntaxException e) { e.printStackTrace(); } }