1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-30 09:10:44 +02:00

Merge pull request #632 from cyian-1756/saveUrlsOnlyFix

No longer writes url to url_history file is save urls only is checked
This commit is contained in:
cyian-1756
2018-05-29 23:47:47 -04:00
committed by GitHub

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;