From 4f6884e58ca251189ea0e1d969a7fe820a6d1210 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Tue, 29 May 2018 20:56:33 -0400 Subject: [PATCH] No longer writes url to url_history file is save urls only is checked --- src/main/java/com/rarchives/ripme/ripper/AbstractRipper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/rarchives/ripme/ripper/AbstractRipper.java b/src/main/java/com/rarchives/ripme/ripper/AbstractRipper.java index 0bf6c001..dc04e801 100644 --- a/src/main/java/com/rarchives/ripme/ripper/AbstractRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/AbstractRipper.java @@ -67,6 +67,10 @@ public abstract class AbstractRipper * @param downloadedURL URL to check if downloaded */ private void writeDownloadedURL(String downloadedURL) throws IOException { + // If "save urls only" is checked don't write to the url history file + if (Utils.getConfigBoolean("urls_only.save", false)) { + return; + } downloadedURL = normalizeUrl(downloadedURL); BufferedWriter bw = null; FileWriter fw = null;