From 3b75b195c15a308d6fe66c57dde54dfceab7f1cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 7 Jun 2025 22:06:53 +0200 Subject: [PATCH] [exhentai] detect HTML downloads (#4798) --- gallery_dl/extractor/exhentai.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/exhentai.py b/gallery_dl/extractor/exhentai.py index 927b5014..c4bcfdf5 100644 --- a/gallery_dl/extractor/exhentai.py +++ b/gallery_dl/extractor/exhentai.py @@ -412,7 +412,12 @@ class ExhentaiGalleryExtractor(ExhentaiExtractor): def _validate_signature(self, signature): """Return False if all file signature bytes are zero""" if signature: - if signature[0]: + byte = signature[0] + if byte: + # 60 == b"<" + if byte == 60 and b"