From 82a12d6126bf9ee452a2fc6ece3043d19d33e325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 17 May 2023 15:18:10 +0200 Subject: [PATCH] [nsfwalbum] detect placeholder images patch by an anonymous contributor --- gallery_dl/extractor/nsfwalbum.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/nsfwalbum.py b/gallery_dl/extractor/nsfwalbum.py index be736d10..6433fbd2 100644 --- a/gallery_dl/extractor/nsfwalbum.py +++ b/gallery_dl/extractor/nsfwalbum.py @@ -75,7 +75,8 @@ class NsfwalbumAlbumExtractor(GalleryExtractor): @staticmethod def _validate_response(response): - return not response.request.url.endswith("/no_image.jpg") + return not response.request.url.endswith( + ("/no_image.jpg", "/placeholder.png")) @staticmethod def _annihilate(value, base=6):