[nsfwalbum] detect '/error.jpg' images (#4598)

pull/4619/head
Mike Fährmann 12 months ago
parent eb230e4b77
commit 482f002e1f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -72,8 +72,8 @@ class NsfwalbumAlbumExtractor(GalleryExtractor):
@staticmethod @staticmethod
def _validate_response(response): def _validate_response(response):
return not response.request.url.endswith( return not response.url.endswith(
("/no_image.jpg", "/placeholder.png")) ("/no_image.jpg", "/placeholder.png", "/error.jpg"))
@staticmethod @staticmethod
def _annihilate(value, base=6): def _annihilate(value, base=6):

Loading…
Cancel
Save