From d7b8e04b5076635a9b2950e081690de976f66a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 5 Feb 2022 18:06:58 +0100 Subject: [PATCH] [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 --- gallery_dl/extractor/kemonoparty.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gallery_dl/extractor/kemonoparty.py b/gallery_dl/extractor/kemonoparty.py index beb992c1b14..e8fcd1aba29 100644 --- a/gallery_dl/extractor/kemonoparty.py +++ b/gallery_dl/extractor/kemonoparty.py @@ -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(