1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2025-01-31 11:41:35 +01:00

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

This commit is contained in:
Mike Fährmann 2023-10-02 15:37:17 +02:00
parent eb230e4b77
commit 482f002e1f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

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