[nsfwalbum] detect placeholder images

patch by an anonymous contributor
This commit is contained in:
Mike Fährmann
2023-05-17 15:18:10 +02:00
parent 011e4607c3
commit 82a12d6126

View File

@@ -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):