Fixed bug that caused no images to be downloaded
This commit is contained in:
parent
e89b27dc14
commit
761f1e2987
@ -53,7 +53,7 @@ public abstract class AbstractHTMLRipper extends AlbumRipper {
|
|||||||
protected boolean hasDescriptionSupport() {
|
protected boolean hasDescriptionSupport() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
public boolean hasASAPRipping() {return false;}
|
public boolean hasASAPRipping() { return false; }
|
||||||
protected String[] getDescription(String url, Document page) throws IOException {
|
protected String[] getDescription(String url, Document page) throws IOException {
|
||||||
throw new IOException("getDescription not implemented"); // Do I do this or make an abstract function?
|
throw new IOException("getDescription not implemented"); // Do I do this or make an abstract function?
|
||||||
}
|
}
|
||||||
@ -69,9 +69,8 @@ public abstract class AbstractHTMLRipper extends AlbumRipper {
|
|||||||
Document doc = getFirstPage();
|
Document doc = getFirstPage();
|
||||||
|
|
||||||
while (doc != null) {
|
while (doc != null) {
|
||||||
List<String> imageURLs;
|
List<String> imageURLs = getURLsFromPage(doc);
|
||||||
if (!hasASAPRipping()) {
|
if (!hasASAPRipping()) {
|
||||||
imageURLs = getURLsFromPage(doc);
|
|
||||||
// Remove all but 1 image
|
// Remove all but 1 image
|
||||||
if (isThisATest()) {
|
if (isThisATest()) {
|
||||||
while (imageURLs.size() > 1) {
|
while (imageURLs.size() > 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user