Skip to content

Commit

Permalink
Redurce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaronator committed Sep 28, 2024
1 parent 1a8937c commit 3aabb09
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gallery_dl/downloader/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,16 +217,14 @@ def _download_impl(self, url, pathfmt):
self.release_conn(response)
self.log.warning(
"File size smaller than allowed minimum (%s < %s)",
size, self.minsize,
)
size, self.minsize)
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,
)
size, self.maxsize)
pathfmt.temppath = ""
return True

Expand Down

0 comments on commit 3aabb09

Please sign in to comment.