Skip to content

Commit

Permalink
[nsfwalbum] detect '/error.jpg' images (mikf#4598)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Oct 2, 2023
1 parent eb230e4 commit 482f002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/nsfwalbum.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def images(self, page):

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

0 comments on commit 482f002

Please sign in to comment.