[nsfwalbum] detect placeholder images
patch by an anonymous contributor
This commit is contained in:
@@ -75,7 +75,8 @@ class NsfwalbumAlbumExtractor(GalleryExtractor):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _validate_response(response):
|
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
|
@staticmethod
|
||||||
def _annihilate(value, base=6):
|
def _annihilate(value, base=6):
|
||||||
|
|||||||
Reference in New Issue
Block a user