mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-04 12:57:33 +02:00
Reverted back some code and removed unnecessary changes
This commit is contained in:
@@ -49,9 +49,8 @@ public class CfakeRipper extends AbstractHTMLRipper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Document getNextPage(Document doc) throws IOException {
|
public Document getNextPage(Document doc) throws IOException {
|
||||||
// Find next page
|
|
||||||
@SuppressWarnings("unused")
|
|
||||||
String nextUrl = "";
|
|
||||||
// We use comic-nav-next to the find the next page
|
// We use comic-nav-next to the find the next page
|
||||||
Element elem = doc.select("td > div.next > a").first();
|
Element elem = doc.select("td > div.next > a").first();
|
||||||
if (elem == null) {
|
if (elem == null) {
|
||||||
|
@@ -59,8 +59,8 @@ public class ErofusRipper extends AbstractHTMLRipper {
|
|||||||
public List<String> getURLsFromPage(Document page) {
|
public List<String> getURLsFromPage(Document page) {
|
||||||
logger.info(page);
|
logger.info(page);
|
||||||
List<String> imageURLs = new ArrayList<>();
|
List<String> imageURLs = new ArrayList<>();
|
||||||
@SuppressWarnings("unused")
|
|
||||||
int x = 1;
|
|
||||||
if (pageContainsImages(page)) {
|
if (pageContainsImages(page)) {
|
||||||
logger.info("Page contains images");
|
logger.info("Page contains images");
|
||||||
ripAlbum(page);
|
ripAlbum(page);
|
||||||
|
@@ -12,7 +12,7 @@ import org.jsoup.nodes.Document;
|
|||||||
import org.jsoup.nodes.Element;
|
import org.jsoup.nodes.Element;
|
||||||
|
|
||||||
import com.rarchives.ripme.ripper.AbstractHTMLRipper;
|
import com.rarchives.ripme.ripper.AbstractHTMLRipper;
|
||||||
//import com.rarchives.ripme.utils.Http;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@ public class PorncomixinfoRipper extends AbstractHTMLRipper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Document getNextPage(Document doc) throws IOException {
|
public Document getNextPage(Document doc) throws IOException {
|
||||||
// Find next page
|
|
||||||
|
|
||||||
// We use comic-nav-next to the find the next page
|
// We use comic-nav-next to the find the next page
|
||||||
Element elem = doc.select("a.next_page").first();
|
Element elem = doc.select("a.next_page").first();
|
||||||
|
@@ -48,6 +48,11 @@ public class DeviantartRipperTest extends RippersTest {
|
|||||||
@Disabled("Broken ripper")
|
@Disabled("Broken ripper")
|
||||||
public void testGetGalleryIDAndUsername() throws IOException, URISyntaxException {
|
public void testGetGalleryIDAndUsername() throws IOException, URISyntaxException {
|
||||||
URL url = new URI("https://www.deviantart.com/airgee/gallery/").toURL();
|
URL url = new URI("https://www.deviantart.com/airgee/gallery/").toURL();
|
||||||
|
DeviantartRipper ripper = new DeviantartRipper(url);
|
||||||
|
Document doc = Http.url(url).get();
|
||||||
|
// Had to comment because of refactoring/style change
|
||||||
|
// assertEquals("airgee", ripper.getUsername(doc));
|
||||||
|
// assertEquals("714589", ripper.getGalleryID(doc));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user