diff options
Diffstat (limited to 'src/DownloadUtils.cpp')
-rw-r--r-- | src/DownloadUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DownloadUtils.cpp b/src/DownloadUtils.cpp index dae013d..33b2830 100644 --- a/src/DownloadUtils.cpp +++ b/src/DownloadUtils.cpp @@ -72,7 +72,7 @@ namespace QuickMedia { } } else { DownloadResult download_result = download_to_string(url, result, additional_args, use_tor, use_browser_useragent, error_handler ? false : true); - if(error_handler) + if(download_result == DownloadResult::OK && error_handler) download_result = error_handler(result) ? DownloadResult::OK : DownloadResult::ERR; if(download_result == DownloadResult::OK) { Path media_file_path_tmp(media_file_path.data + ".tmp"); |