1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-27 15:49:50 +02:00

The addURLToDownload func in AlbumRipper.java now saves downloaded urls when remember.url_history ia true

This commit is contained in:
cyian-1756
2018-12-22 14:22:31 -05:00
parent ebd1f35a16
commit c9e79fdd77

View File

@@ -96,6 +96,14 @@ public abstract class AlbumRipper extends AbstractRipper {
}
threadPool.addThread(dft);
}
if (Utils.getConfigBoolean("remember.url_history", true) && !isThisATest()) {
LOGGER.info("Writing " + url.toExternalForm() + " to file");
try {
writeDownloadedURL(url.toExternalForm() + "\n");
} catch (IOException e) {
LOGGER.debug("Unable to write URL history file");
}
}
return true;
}