Ejemplo n.º 1
0
    def __init__(self, cdn_url, cache_path, cache_uri, logger, uri_handler):
        """ Creates a Cached Texture handler

        @param cdn_url:          The URL of the CDN
        @param cache_path:       The os path of the profile for caching
        @param cache_uri:        The uri path (Kodi uri special:// ) for caching
        @param logger:          The Logger instance
        @param uri_handler:      The UriHandler instance

        """

        TextureHandler.__init__(self, logger)

        self.__cdnUrl = cdn_url
        if not self.__cdnUrl:
            self.__cdnUrl = "https://cdn.rieter.net/plugin.video.retrospect.cdn/"

        self.__channelTexturePath = os.path.join(cache_path, "textures")
        self.__channelTextureUri = "%s/%s" % (cache_uri, "textures")
        if not os.path.isdir(self.__channelTexturePath):
            os.makedirs(self.__channelTexturePath)

        self.__uriHandler = uri_handler

        self.__textureQueue = {}
    def __init__(self, resource_add_on, logger):
        TextureHandler.__init__(self, logger)

        self.__resource_add_on = resource_add_on
Ejemplo n.º 3
0
    def __init__(self, cdn_url, logger):
        TextureHandler.__init__(self, logger)

        self.__cdnUrl = cdn_url
        if not self.__cdnUrl:
            self.__cdnUrl = "https://cdn.rieter.net/plugin.video.retrospect.cdn/"
Ejemplo n.º 4
0
 def __init__(self, logger):
     TextureHandler.__init__(self, logger)