1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-18 11:41:21 +02:00

Merge pull request #616 from torbica/master

Break if already downloaded x times
This commit is contained in:
cyian-1756
2018-05-25 15:56:08 -04:00
committed by GitHub

View File

@@ -71,6 +71,11 @@ public abstract class AbstractJSONRipper extends AlbumRipper {
if (isStopped()) { if (isStopped()) {
break; 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; index += 1;
logger.debug("Found image url #" + index+ ": " + imageURL); logger.debug("Found image url #" + index+ ": " + imageURL);
downloadURL(new URL(imageURL), index); downloadURL(new URL(imageURL), index);