Skip to content

Commit

Permalink
Merge pull request #786 from cyian-1756/manganeloRipperFixes
Browse files Browse the repository at this point in the history
Manganelo ripper fixes
  • Loading branch information
cyian-1756 authored Jul 8, 2018
2 parents f52cb3d + 42c5a7b commit 2629d7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public List<String> getURLsFromPage(Document doc) {
Collections.reverse(urlsToGrab);

for (String url : urlsToGrab) {
result.addAll(getURLsFromChap(url));
result.addAll(getURLsFromChap("https:" + url));
}
} else if (url.toExternalForm().contains("/chapter/")) {
result.addAll(getURLsFromChap(doc));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@

public class ManganeloRipperTest extends RippersTest {
public void testRip() throws IOException {
ManganeloRipper ripper = new ManganeloRipper(new URL("http://manganelo.com/manga/black_clover"));
ManganeloRipper ripper = new ManganeloRipper(new URL("https://manganelo.com/manga/demonic_housekeeper"));
testRipper(ripper);
}

public void testGetGID() throws IOException {
URL url = new URL("https://manganelo.com/manga/demonic_housekeeper");
ManganeloRipper ripper = new ManganeloRipper(url);
assertEquals("demonic_housekeeper", ripper.getGID(url));
}
}

0 comments on commit 2629d7f

Please sign in to comment.