No longer writes url to url_history file is save urls only is checked

This commit is contained in:
cyian-1756 2018-05-29 20:56:33 -04:00
parent d58a80b5e6
commit 4f6884e58c

View File

@ -67,6 +67,10 @@ public abstract class AbstractRipper
* @param downloadedURL URL to check if downloaded * @param downloadedURL URL to check if downloaded
*/ */
private void writeDownloadedURL(String downloadedURL) throws IOException { 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); downloadedURL = normalizeUrl(downloadedURL);
BufferedWriter bw = null; BufferedWriter bw = null;
FileWriter fw = null; FileWriter fw = null;