Skip to content

Commit

Permalink
[kemonoparty] use 'Accept-Encoding: identity' for all downloads
Browse files Browse the repository at this point in the history
(#2267)

fixes issues when data send with 'Content-Encoding: gzip' or other
encodings is larger than the actual file
  • Loading branch information
mikf committed Feb 5, 2022
1 parent f4a7c6e commit d7b8e04
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gallery_dl/extractor/kemonoparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,8 @@ def items(self):
comments = self.config("comments")
username = dms = None

# prevent files from coomer.party to be sent with gzip compression
if "coomer" in self.root:
headers = {"Accept-Encoding": "identity"}
else:
headers = None
# prevent files to be sent with gzip compression
headers = {"Accept-Encoding": "identity"}

if self.config("metadata"):
username = text.unescape(text.extract(
Expand Down

0 comments on commit d7b8e04

Please sign in to comment.