Merge pull request #396 from aaether32323/Webtoons_Ripper
Make webtoons ripper download maximum quality images
This commit is contained in:
commit
8c6f3c4336
@ -71,7 +71,9 @@ public class WebtoonsRipper extends AbstractHTMLRipper {
|
|||||||
public List<String> getURLsFromPage(Document doc) {
|
public List<String> getURLsFromPage(Document doc) {
|
||||||
List<String> result = new ArrayList<String>();
|
List<String> result = new ArrayList<String>();
|
||||||
for (Element elem : doc.select("div.viewer_img > img")) {
|
for (Element elem : doc.select("div.viewer_img > img")) {
|
||||||
result.add(elem.attr("data-url"));
|
String origUrl = elem.attr("data-url");
|
||||||
|
String[] finalUrl = origUrl.split("\\?type");
|
||||||
|
result.add(finalUrl[0]);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -10,4 +10,9 @@ public class WebtoonsRipperTest extends RippersTest {
|
|||||||
WebtoonsRipper ripper = new WebtoonsRipper(new URL("http://www.webtoons.com/en/drama/my-boo/ep-33/viewer?title_no=1185&episode_no=33"));
|
WebtoonsRipper ripper = new WebtoonsRipper(new URL("http://www.webtoons.com/en/drama/my-boo/ep-33/viewer?title_no=1185&episode_no=33"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testWebtoonsType() throws IOException {
|
||||||
|
WebtoonsRipper ripper = new WebtoonsRipper(new URL("http://www.webtoons.com/en/drama/lookism/ep-145/viewer?title_no=1049&episode_no=145"));
|
||||||
|
testRipper(ripper);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user