From 0a6487afe817dc988024cb224833fe7019db623f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 15 Feb 2017 03:36:46 +0100 Subject: [PATCH] [exhentai] fix detection of invalid gallery keys --- gallery_dl/extractor/exhentai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/extractor/exhentai.py b/gallery_dl/extractor/exhentai.py index e0578303..7e1c451d 100644 --- a/gallery_dl/extractor/exhentai.py +++ b/gallery_dl/extractor/exhentai.py @@ -62,7 +62,7 @@ class ExhentaiGalleryExtractor(Extractor): page = response.text if response.status_code == 404 and "Gallery Not Available" in page: raise exception.AuthorizationError() - if page.startswith(("\ufeffKey missing", "\ufeffGallery not found")): + if page.startswith(("Key missing", "Gallery not found")): raise exception.NotFoundError("gallery") data = self.get_job_metadata(page) self.count = int(data["count"])