[kemonoparty] use 'Accept-Encoding: identity' for all downloads

(#2267)

fixes issues when data send with 'Content-Encoding: gzip' or other
encodings is larger than the actual file
pull/2279/head
Mike Fährmann 3 years ago
parent f4a7c6eca2
commit d7b8e04b50
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -45,11 +45,8 @@ class KemonopartyExtractor(Extractor):
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(

Loading…
Cancel
Save