Merge pull request #616 from torbica/master
Break if already downloaded x times
This commit is contained in:
commit
90b72a300b
@ -71,6 +71,11 @@ public abstract class AbstractJSONRipper extends AlbumRipper {
|
||||
if (isStopped()) {
|
||||
break;
|
||||
}
|
||||
if (alreadyDownloadedUrls >= Utils.getConfigInteger("history.end_rip_after_already_seen", 1000000000) && !isThisATest()) {
|
||||
sendUpdate(STATUS.DOWNLOAD_COMPLETE, "Already seen the last " + alreadyDownloadedUrls + " images ending rip");
|
||||
break;
|
||||
}
|
||||
|
||||
index += 1;
|
||||
logger.debug("Found image url #" + index+ ": " + imageURL);
|
||||
downloadURL(new URL(imageURL), index);
|
||||
|
Loading…
Reference in New Issue
Block a user