diff --git a/google_images_search/fetch_resize_save.py b/google_images_search/fetch_resize_save.py index d06eba1..c2f271a 100644 --- a/google_images_search/fetch_resize_save.py +++ b/google_images_search/fetch_resize_save.py @@ -393,6 +393,12 @@ def __init__(self, fetch_resize_save): self.resized = False + def __eq__(self, other): + return self.url == other.url + + def __hash__(self): + return hash(self.url) + @property def url(self): """Returns the image url