1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-31 17:42:11 +02:00

new URL is deprecated, additional exceptions

This commit is contained in:
soloturn
2023-06-15 13:37:04 +02:00
parent 7e6cdab4d7
commit 911f3d0311
2 changed files with 4 additions and 4 deletions

View File

@@ -3,8 +3,7 @@ package com.rarchives.ripme.ripper;
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.net.MalformedURLException; import java.net.*;
import java.net.URL;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.nio.file.Files; import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
@@ -104,7 +103,7 @@ public abstract class AbstractHTMLRipper extends AbstractRipper {
} }
@Override @Override
public void rip() throws IOException { public void rip() throws IOException, URISyntaxException {
int index = 0; int index = 0;
int textindex = 0; int textindex = 0;
LOGGER.info("Retrieving " + this.url); LOGGER.info("Retrieving " + this.url);

View File

@@ -5,6 +5,7 @@ import com.rarchives.ripme.utils.Http;
import java.io.IOException; import java.io.IOException;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URI; 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;
@@ -214,7 +215,7 @@ public class MrCongRipper extends AbstractHTMLRipper {
mcr.rip(); mcr.rip();
} }
} catch (IOException e) { } catch (IOException | URISyntaxException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }