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
commit e9b2baa873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;