summaryrefslogtreecommitdiffstats
path: root/gallery_dl/downloader/http.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-11-27 17:57:01 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2023-11-27 17:57:01 -0500
commit2a817af4fe41289fa705bdc5ee61372333f43996 (patch)
tree544d884724e98184afc1d982f0e9fa59137ef498 /gallery_dl/downloader/http.py
parent7997fa94c82f9a6db63421c0af433f325a8aa607 (diff)
New upstream version 1.26.3.upstream/1.26.3
Diffstat (limited to 'gallery_dl/downloader/http.py')
-rw-r--r--gallery_dl/downloader/http.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gallery_dl/downloader/http.py b/gallery_dl/downloader/http.py
index 30ac001..f493947 100644
--- a/gallery_dl/downloader/http.py
+++ b/gallery_dl/downloader/http.py
@@ -200,13 +200,15 @@ class HttpDownloader(DownloaderBase):
self.log.warning(
"File size smaller than allowed minimum (%s < %s)",
size, self.minsize)
- return False
+ pathfmt.temppath = ""
+ return True
if self.maxsize and size > self.maxsize:
self.release_conn(response)
self.log.warning(
"File size larger than allowed maximum (%s > %s)",
size, self.maxsize)
- return False
+ pathfmt.temppath = ""
+ return True
build_path = False