mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-31 01:30:00 +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.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);
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user