mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-04-21 04:11:50 +02:00
Reverted back some code and removed unnecessary changes
This commit is contained in:
parent
67ea64ca1b
commit
94e8086daa
@ -49,9 +49,8 @@ public class CfakeRipper extends AbstractHTMLRipper {
|
||||
|
||||
@Override
|
||||
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
|
||||
Element elem = doc.select("td > div.next > a").first();
|
||||
if (elem == null) {
|
||||
|
@ -59,8 +59,8 @@ public class ErofusRipper extends AbstractHTMLRipper {
|
||||
public List<String> getURLsFromPage(Document page) {
|
||||
logger.info(page);
|
||||
List<String> imageURLs = new ArrayList<>();
|
||||
@SuppressWarnings("unused")
|
||||
int x = 1;
|
||||
|
||||
|
||||
if (pageContainsImages(page)) {
|
||||
logger.info("Page contains images");
|
||||
ripAlbum(page);
|
||||
|
@ -12,7 +12,7 @@ import org.jsoup.nodes.Document;
|
||||
import org.jsoup.nodes.Element;
|
||||
|
||||
import com.rarchives.ripme.ripper.AbstractHTMLRipper;
|
||||
//import com.rarchives.ripme.utils.Http;
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -43,7 +43,7 @@ public class PorncomixinfoRipper extends AbstractHTMLRipper {
|
||||
|
||||
@Override
|
||||
public Document getNextPage(Document doc) throws IOException {
|
||||
// Find next page
|
||||
|
||||
|
||||
// We use comic-nav-next to the find the next page
|
||||
Element elem = doc.select("a.next_page").first();
|
||||
|
@ -48,6 +48,11 @@ public class DeviantartRipperTest extends RippersTest {
|
||||
@Disabled("Broken ripper")
|
||||
public void testGetGalleryIDAndUsername() throws IOException, URISyntaxException {
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user