Skip to content

Commit fd0e3a8

Browse files
committed
Implement review suggestions
1 parent 09f15c8 commit fd0e3a8

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/main/java/com/rarchives/ripme/ripper/AbstractJSONRipper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.rarchives.ripme.ripper;
22

3-
import java.io.File;
43
import java.io.IOException;
54
import java.net.MalformedURLException;
65
import java.net.URI;
@@ -9,7 +8,6 @@
98
import java.nio.file.Files;
109
import java.nio.file.Path;
1110
import java.util.List;
12-
import java.util.stream.Stream;
1311

1412
import org.json.JSONObject;
1513

src/main/java/com/rarchives/ripme/ripper/rippers/HentaifoundryRipper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import com.rarchives.ripme.ripper.AbstractHTMLRipper;
2121
import com.rarchives.ripme.utils.Http;
22-
import com.rarchives.ripme.utils.Utils;
2322

2423
public class HentaifoundryRipper extends AbstractHTMLRipper {
2524

src/main/java/com/rarchives/ripme/ripper/rippers/NhentaiRipper.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.io.IOException;
44
import java.net.MalformedURLException;
5+
import java.net.URISyntaxException;
56
import java.net.URL;
67
import java.util.ArrayList;
78
import java.util.List;
@@ -71,7 +72,7 @@ public String getHost() {
7172
}
7273

7374
@Override
74-
public String getAlbumTitle() throws MalformedURLException {
75+
public String getAlbumTitle() throws MalformedURLException, URISyntaxException {
7576
if (firstPage == null) {
7677
try {
7778
firstPage = Http.url(url).get();
@@ -82,7 +83,7 @@ public String getAlbumTitle() throws MalformedURLException {
8283

8384
String title = firstPage.select("#info > h1").text();
8485
if (title == null) {
85-
return getAlbumTitle();
86+
return super.getAlbumTitle();
8687
}
8788
return "nhentai" + title;
8889
}

0 commit comments

Comments
 (0)