mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-30 09:10:44 +02:00
new URL is deprecated, additional exceptions
This commit is contained in:
@@ -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);
|
||||
|
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user