mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-24 06:23:52 +02:00
Remove some dead code
This commit is contained in:
@@ -3,8 +3,6 @@ package com.rarchives.ripme.ripper.rippers;
|
|||||||
import com.rarchives.ripme.ripper.AbstractHTMLRipper;
|
import com.rarchives.ripme.ripper.AbstractHTMLRipper;
|
||||||
import com.rarchives.ripme.ui.RipStatusMessage;
|
import com.rarchives.ripme.ui.RipStatusMessage;
|
||||||
import com.rarchives.ripme.utils.Http;
|
import com.rarchives.ripme.utils.Http;
|
||||||
import org.json.JSONObject;
|
|
||||||
import org.jsoup.Connection;
|
|
||||||
import org.jsoup.nodes.Document;
|
import org.jsoup.nodes.Document;
|
||||||
import org.jsoup.nodes.Element;
|
import org.jsoup.nodes.Element;
|
||||||
import org.jsoup.select.Elements;
|
import org.jsoup.select.Elements;
|
||||||
@@ -21,14 +19,6 @@ import java.util.regex.Pattern;
|
|||||||
|
|
||||||
public class ErofusRipper extends AbstractHTMLRipper {
|
public class ErofusRipper extends AbstractHTMLRipper {
|
||||||
|
|
||||||
private Document albumDoc = null;
|
|
||||||
private Map<String,String> cookies = new HashMap<>();
|
|
||||||
// TODO put up a wiki page on using maps to store titles
|
|
||||||
// the map for storing the title of each album when downloading sub albums
|
|
||||||
private Map<URL,String> urlTitles = new HashMap<>();
|
|
||||||
|
|
||||||
private Boolean rippingSubalbums = false;
|
|
||||||
|
|
||||||
public ErofusRipper(URL url) throws IOException {
|
public ErofusRipper(URL url) throws IOException {
|
||||||
super(url);
|
super(url);
|
||||||
}
|
}
|
||||||
@@ -60,12 +50,7 @@ public class ErofusRipper extends AbstractHTMLRipper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Document getFirstPage() throws IOException {
|
public Document getFirstPage() throws IOException {
|
||||||
if (albumDoc == null) {
|
return Http.url(url).get();
|
||||||
Connection.Response resp = Http.url(url).response();
|
|
||||||
cookies.putAll(resp.cookies());
|
|
||||||
albumDoc = resp.parse();
|
|
||||||
}
|
|
||||||
return albumDoc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -129,6 +114,6 @@ public class ErofusRipper extends AbstractHTMLRipper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void downloadURL(URL url, int index) {
|
public void downloadURL(URL url, int index) {
|
||||||
addURLToDownload(url, getPrefix(index), "", this.url.toExternalForm(), cookies);
|
addURLToDownload(url, getPrefix(index));
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user