@classmethod
    def __add_image(cls, uri, crawler, site):
        if not cls._is_image(uri):
            # self._log("info", uri + " is no image ")
            return False

        if cls._is_blacklisted(uri):
            return False

        if crawler not in cls.__images:
            cls.__images[crawler] = {}

        if site not in cls.__images[crawler]:
            cls.__images[crawler][site] = []

        cls._blacklist(uri)  # add it to the blacklist to detect duplicates
        cls.__images[crawler][site].append("%s#%s" % (uri, crawler))
        cls._log("debug", "added %s-%s: %s" % (crawler, site, uri))
        return True
:type uri: str
dataset/ETHPy150Open k4cg/nichtparasoup/crawler/__init__.py/Crawler.__add_image