Implemented a last seen feature; Added comments

This commit is contained in:
cyian-1756 2018-02-25 18:10:38 -05:00
parent 66739e4c7c
commit 8c86377a7f

View File

@ -68,7 +68,14 @@ public abstract class AbstractHTMLRipper extends AlbumRipper {
Document doc = getFirstPage(); Document doc = getFirstPage();
while (doc != null) { while (doc != null) {
logger.debug("alreadyDownloadedUrls is " + alreadyDownloadedUrls);
if (alreadyDownloadedUrls >= Utils.getConfigInteger("skip_after_already_seen", -1) && !isThisATest()) {
sendUpdate(STATUS.DOWNLOAD_COMPLETE, "Already seen the last " + alreadyDownloadedUrls + " images ending rip");
break;
}
List<String> imageURLs = getURLsFromPage(doc); List<String> imageURLs = getURLsFromPage(doc);
// If hasASAPRipping() returns true then the ripper will handle downloading the files
// if not it's done in the following block of code
if (!hasASAPRipping()) { if (!hasASAPRipping()) {
// Remove all but 1 image // Remove all but 1 image
if (isThisATest()) { if (isThisATest()) {