def getfilefromtitle(url,title):
    # Imprime en el log lo que va a descartar
    logger.info("[downloadtools.py] getfilefromtitle: url="+url )
    #logger.info("[downloadtools.py] downloadtitle: title="+urllib.quote_plus( title ))
    plataforma = config.get_system_platform();
    logger.info("[downloadtools.py] getfilefromtitle: plataforma="+plataforma)
    
    #nombrefichero = xbmc.makeLegalFilename(title + url[-4:])
    if plataforma=="xbox":
        nombrefichero = title[:38] + url[-4:]
        nombrefichero = limpia_nombre_excepto_1(nombrefichero)
    else:
        nombrefichero = title + url[-4:]
        if "videobb" in url or "videozer" in url:
            nombrefichero = title + ".flv"
        if "videobam" in url:
            nombrefichero = title+"."+url.rsplit(".",1)[1][0:3]
        if "filenium" in url:
            # Content-Disposition	filename="filenium_El.Gato.con.Botas.TSScreener.Latino.avi"
            import scrapertools
            content_disposition_header = scrapertools.get_header_from_response(url,header_to_get="Content-Disposition")
            logger.info("content_disposition="+content_disposition_header)
            partes=content_disposition_header.split("=")
            nombrefichero = title + partes[1][-5:-1]

        nombrefichero = limpia_nombre_caracteres_especiales(nombrefichero)

    logger.info("[downloadtools.py] getfilefromtitle: nombrefichero=%s" % nombrefichero)

    fullpath = os.path.join( config.get_setting("downloadpath") , nombrefichero )
    logger.info("[downloadtools.py] getfilefromtitle: fullpath=%s" % fullpath)
    
    return fullpath
def getfilefromtitle(url, title):
    # Imprime en el log lo que va a descartar
    logger.info("streamondemand.core.downloadtools getfilefromtitle: title=" +
                title)
    logger.info("streamondemand.core.downloadtools getfilefromtitle: url=" +
                url)
    #logger.info("streamondemand.core.downloadtools downloadtitle: title="+urllib.quote_plus( title ))
    plataforma = config.get_system_platform()
    logger.info(
        "streamondemand.core.downloadtools getfilefromtitle: plataforma=" +
        plataforma)

    #nombrefichero = xbmc.makeLegalFilename(title + url[-4:])
    import scrapertools
    if plataforma == "xbox":
        nombrefichero = title[:38] + scrapertools.get_filename_from_url(
            url)[-4:]
        nombrefichero = limpia_nombre_excepto_1(nombrefichero)
    else:
        nombrefichero = title + scrapertools.get_filename_from_url(url)[-4:]
        logger.info(
            "streamondemand.core.downloadtools getfilefromtitle: nombrefichero=%s"
            % nombrefichero)
        if "videobb" in url or "videozer" in url or "putlocker" in url:
            nombrefichero = title + ".flv"
        if "videobam" in url:
            nombrefichero = title + "." + url.rsplit(".", 1)[1][0:3]
        if "filenium" in url:
            # Content-Disposition	filename="filenium_El.Gato.con.Botas.TSScreener.Latino.avi"
            import scrapertools
            content_disposition_header = scrapertools.get_header_from_response(
                url, header_to_get="Content-Disposition")
            logger.info("content_disposition=" + content_disposition_header)
            partes = content_disposition_header.split("=")
            if len(partes) <= 1:
                raise Exception('filenium', 'no existe')

            extension = partes[1][-5:-1]
            nombrefichero = title + extension
        logger.info(
            "streamondemand.core.downloadtools getfilefromtitle: nombrefichero=%s"
            % nombrefichero)

        nombrefichero = limpia_nombre_caracteres_especiales(nombrefichero)

    logger.info(
        "streamondemand.core.downloadtools getfilefromtitle: nombrefichero=%s"
        % nombrefichero)

    fullpath = os.path.join(config.get_setting("downloadpath"), nombrefichero)
    logger.info(
        "streamondemand.core.downloadtools getfilefromtitle: fullpath=%s" %
        fullpath)

    return fullpath
Example #3
0
def GetTitleFromFile(title):
    # Imprime en el log lo que va a descartar
    logger.info("[downloadtools.py] GetTitleFromFile: titulo=" + title)
    # logger.info("[downloadtools.py] downloadtitle: title="+urllib.quote_plus( title ))
    plataforma = config.get_system_platform()
    logger.info("[downloadtools.py] GetTitleFromFile: plataforma=" + plataforma)

    # nombrefichero = xbmc.makeLegalFilename(title + url[-4:])
    if plataforma == "xbox":
        nombrefichero = title[:38] + title[-4:]
        nombrefichero = limpia_nombre_excepto_1(nombrefichero)
    else:
        nombrefichero = title
    return nombrefichero
Example #4
0
def GetTitleFromFile(title):
	# Imprime en el log lo que va a descartar
	logger.info("[downloadtools.py] GetTitleFromFile: titulo="+title )
	#logger.info("[downloadtools.py] downloadtitle: title="+urllib.quote_plus( title ))
	plataforma = config.get_system_platform();
	logger.info("[downloadtools.py] GetTitleFromFile: plataforma="+plataforma)
	
	#nombrefichero = xbmc.makeLegalFilename(title + url[-4:])
	if plataforma=="xbox":
		nombrefichero = title[:38] + title[-4:]
		nombrefichero = limpia_nombre_excepto_1(nombrefichero)
	else:
		nombrefichero = title
	return nombrefichero
Example #5
0
def getfilefromtitle(url, title, folder=""):
    logger.info("[downloadtools.py] getfilefromtitle: title=" + title + " url=" + url + " folder=" + folder)

    # logger.info("[downloadtools.py] downloadtitle: title="+urllib.quote_plus( title ))
    plataforma = config.get_system_platform()
    logger.info("[downloadtools.py] getfilefromtitle: plataforma=" + plataforma)

    # nombrefichero = xbmc.makeLegalFilename(title + url[-4:])
    import scrapertools

    if plataforma == "xbox":
        nombrefichero = title[:38] + scrapertools.get_filename_from_url(url)[-4:]
        nombrefichero = limpia_nombre_excepto_1(nombrefichero)
    else:
        nombrefichero = title + scrapertools.get_filename_from_url(url)[-4:]
        logger.info("[downloadtools.py] getfilefromtitle: nombrefichero=%s" % nombrefichero)
        if "videobb" in url or "videozer" in url or "putlocker" in url:
            nombrefichero = title + ".flv"
        if "videobam" in url:
            nombrefichero = title + "." + url.rsplit(".", 1)[1][0:3]
        if "dibujos.tv" in url:
            nombrefichero = title + ".mp4"
        if "filenium" in url:
            # Content-Disposition	filename="filenium_El.Gato.con.Botas.TSScreener.Latino.avi"
            import scrapertools

            content_disposition_header = scrapertools.get_header_from_response(url, header_to_get="Content-Disposition")
            logger.info("content_disposition=" + content_disposition_header)
            partes = content_disposition_header.split("=")
            if len(partes) <= 1:
                raise Exception("filenium", "no existe")

            extension = partes[1][-5:-1]
            nombrefichero = title + extension
        logger.info("[downloadtools.py] getfilefromtitle: nombrefichero=%s" % nombrefichero)

        nombrefichero = limpia_nombre_caracteres_especiales(nombrefichero)

    logger.info("[downloadtools.py] getfilefromtitle: nombrefichero=%s" % nombrefichero)

    if folder == "":
        fullpath = os.path.join(config.get_setting("downloadpath"), nombrefichero)
    else:
        fullpath = os.path.join(config.get_setting("downloadpath"), folder, nombrefichero)

    logger.info("[downloadtools.py] getfilefromtitle: fullpath=%s" % fullpath)

    return fullpath
Example #6
0
def getfilefromtitle(url, title):
    # Imprime en el log lo que va a descartar
    logger.info("[downloadtools.py] getfilefromtitle: url=" + url)
    # logger.info("[downloadtools.py] downloadtitle: title="+urllib.quote_plus( title ))
    plataforma = config.get_system_platform()
    logger.info("[downloadtools.py] getfilefromtitle: plataforma=" + plataforma)

    # nombrefichero = xbmc.makeLegalFilename(title + url[-4:])
    if plataforma == "xbox":
        nombrefichero = title[:38] + url[-4:]
        nombrefichero = limpia_nombre_excepto_1(nombrefichero)
    else:
        nombrefichero = title + url[-4:]

    logger.info("[downloadtools.py] getfilefromtitle: nombrefichero=%s" % nombrefichero)
    fullpath = os.path.join(getDownloadPath(), nombrefichero)
    logger.info("[downloadtools.py] getfilefromtitle: fullpath=%s" % fullpath)

    return fullpath
Example #7
0
def getfilefromtitle(url,title):
	# Imprime en el log lo que va a descartar
	logger.info("[downloadtools.py] getfilefromtitle: url="+url )
	#logger.info("[downloadtools.py] downloadtitle: title="+urllib.quote_plus( title ))
	plataforma = config.get_system_platform();
	logger.info("[downloadtools.py] getfilefromtitle: plataforma="+plataforma)
	
	#nombrefichero = xbmc.makeLegalFilename(title + url[-4:])
	if plataforma=="xbox":
		nombrefichero = title[:38] + url[-4:]
		nombrefichero = limpia_nombre_excepto_1(nombrefichero)
	else:
		nombrefichero = title + url[-4:]

	logger.info("[downloadtools.py] getfilefromtitle: nombrefichero=%s" % nombrefichero)
	fullpath = os.path.join( getDownloadPath() , nombrefichero )
	logger.info("[downloadtools.py] getfilefromtitle: fullpath=%s" % fullpath)
	
	return fullpath
Example #8
0
elif thumbnail_type == "2":
    IMAGES_PATH = 'http://media.tvalacarta.info/pelisalacarta/squares/'

ROOT_DIR = config.get_runtime_path()

REMOTE_VERSION_FILE = "https://raw.githubusercontent.com/streamondemand/plugin.video.streamondemand/master/version.xml"
LOCAL_VERSION_FILE = os.path.join(ROOT_DIR, "version.xml")
LOCAL_FILE = os.path.join(ROOT_DIR, config.PLUGIN_NAME + "-")

try:
    # Añadida a la opcion : si plataforma xbmcdharma es "True", no debe ser con la plataforma de la xbox
    # porque seria un falso "True", ya que el xbmc en las xbox no son dharma por lo tanto no existen los addons
    logger.info("streamondemand.core.updater get_platform=" +
                config.get_platform())
    logger.info("streamondemand.core.updater get_system_platform=" +
                config.get_system_platform())
    if config.get_platform() == "kodi-jarvis":
        import xbmc
        REMOTE_FILE = "https://github.com/streamondemand/plugin.video.streamondemand/archive/master.zip"
        DESTINATION_FOLDER = xbmc.translatePath("special://home/addons")
    elif config.get_platform() == "kodi-isengard":
        import xbmc
        REMOTE_FILE = "https://github.com/streamondemand/plugin.video.streamondemand/archive/master.zip"
        DESTINATION_FOLDER = xbmc.translatePath("special://home/addons")
    elif config.get_platform() == "kodi-helix":
        import xbmc
        REMOTE_FILE = "https://github.com/streamondemand/plugin.video.streamondemand/archive/master.zip"
        DESTINATION_FOLDER = xbmc.translatePath("special://home/addons")
    elif config.get_platform() == "xbmc-eden":
        import xbmc
        REMOTE_FILE = "https://github.com/streamondemand/plugin.video.streamondemand/archive/master.zip"
Example #9
0
elif thumbnail_type=="1":
    IMAGES_PATH = 'http://media.tvalacarta.info/tvalacarta/banners/'
elif thumbnail_type=="2":
    IMAGES_PATH = 'http://media.tvalacarta.info/tvalacarta/squares/'

ROOT_DIR = config.get_runtime_path()

REMOTE_VERSION_FILE = "http://descargas.tvalacarta.info/"+config.PLUGIN_NAME+"-version.xml"
LOCAL_VERSION_FILE = os.path.join( ROOT_DIR , "version.xml" )
LOCAL_FILE = os.path.join( ROOT_DIR , config.PLUGIN_NAME+"-" )

try:
    # Añadida a la opcion : si plataforma xbmcdharma es "True", no debe ser con la plataforma de la xbox
    # porque seria un falso "True", ya que el xbmc en las xbox no son dharma por lo tanto no existen los addons
    logger.info("tvalacarta.core.updater get_platform="+config.get_platform())
    logger.info("tvalacarta.core.updater get_system_platform="+config.get_system_platform())
    if config.get_platform()=="kodi-jarvis":
        import xbmc
        REMOTE_FILE = "http://descargas.tvalacarta.info/"+config.PLUGIN_NAME+"-kodi-jarvis-"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="kodi-isengard":
        import xbmc
        REMOTE_FILE = "http://descargas.tvalacarta.info/"+config.PLUGIN_NAME+"-kodi-isengard-"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="kodi-helix":
        import xbmc
        REMOTE_FILE = "http://descargas.tvalacarta.info/"+config.PLUGIN_NAME+"-kodi-helix-"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="xbmc-eden":
        import xbmc
        REMOTE_FILE = "http://descargas.tvalacarta.info/"+config.PLUGIN_NAME+"-xbmc-eden-"

PLUGIN_NAME = "pelisalacarta-3-9X"
ROOT_DIR = config.get_runtime_path()
REMOTE_VERSION_FILE = "http://blog.tvalacarta.info/descargas/" + PLUGIN_NAME + "-version.xml"
LOCAL_VERSION_FILE = os.path.join(ROOT_DIR, "version.xml")
URL_BASE_REPOSITORIO = "http://xbmc-tvalacarta.googlecode.com/svn/trunk/" + PLUGIN_NAME
LOCAL_FILE = os.path.join(ROOT_DIR, PLUGIN_NAME + "-")
DIRECTORIO_PATH_CONFIG = os.path.join(config.get_data_path(), "channels")
PATH_LIST_CHANNELS_JSON = os.path.join(config.get_data_path(), "list_channels.json")
PATH_LIST_SERVERS_JSON = os.path.join(config.get_data_path(), "list_servers.json")


try:
    logger.info("[updater.py] get_platform=" + config.get_platform())
    logger.info("[updater.py] get_system_platform=" + config.get_system_platform())

    REMOTE_FILE = "http://blog.tvalacarta.info/descargas/" + PLUGIN_NAME
    if config.get_platform() == "xbmcdharma" and config.get_system_platform() == "xbox":
        # Añadida a la opcion : si plataforma xbmcdharma es "True", no debe ser con la plataforma de la xbox
        # porque seria un falso "True", ya que el xbmc en las xbox no son dharma por lo tanto no existen los addons
        REMOTE_FILE = ""
    elif config.get_platform() == "xbmc":
        REMOTE_FILE += "-xbmc-plugin-"
        import xbmc

        DESTINATION_FOLDER = xbmc.translatePath("special://home/plugins/video")
    elif config.get_platform().startswith("xbmc"):
        REMOTE_FILE += config.get_platform().replace("xbmc", "-xbmc-addon-") + "-"
        import xbmc
Example #11
0
    IMAGES_PATH = 'http://pelisalacarta.mimediacenter.info/banners/'
elif thumbnail_type == "2":
    IMAGES_PATH = 'http://pelisalacarta.mimediacenter.info/squares/'

ROOT_DIR = config.get_runtime_path()

REMOTE_VERSION_FILE = "http://blog.tvalacarta.info/descargas/" + PLUGIN_NAME + "-version.xml"
LOCAL_VERSION_FILE = os.path.join(ROOT_DIR, "version.xml")
LOCAL_FILE = os.path.join(ROOT_DIR, PLUGIN_NAME + "-")

try:
    # Añadida a la opcion : si plataforma xbmcdharma es "True", no debe ser con la plataforma de la xbox
    # porque seria un falso "True", ya que el xbmc en las xbox no son dharma por lo tanto no existen los addons
    logger.info("[updater.py] get_platform=" + config.get_platform())
    logger.info("[updater.py] get_system_platform=" +
                config.get_system_platform())
    if config.get_platform(
    ) == "xbmcdharma" and not config.get_system_platform() == "xbox":
        import xbmc
        REMOTE_FILE = "http://blog.tvalacarta.info/descargas/" + PLUGIN_NAME + "-xbmc-addon-dharma-"
        DESTINATION_FOLDER = xbmc.translatePath("special://home/addons")
    elif config.get_platform() == "xbmceden":
        import xbmc
        REMOTE_FILE = "http://blog.tvalacarta.info/descargas/" + PLUGIN_NAME + "-xbmc-addon-eden-"
        DESTINATION_FOLDER = xbmc.translatePath("special://home/addons")
    elif config.get_platform() == "xbmcfrodo":
        import xbmc
        REMOTE_FILE = "http://blog.tvalacarta.info/descargas/" + PLUGIN_NAME + "-xbmc-addon-frodo-"
        DESTINATION_FOLDER = xbmc.translatePath("special://home/addons")
    elif config.get_platform() == "xbmcgotham":
        import xbmc
PLUGIN_NAME = "pelisalacarta"
ROOT_DIR = config.get_runtime_path()
REMOTE_VERSION_FILE = "http://blog.tvalacarta.info/descargas/" + PLUGIN_NAME + "-version.xml"
LOCAL_VERSION_FILE = os.path.join(ROOT_DIR, "version.xml")
URL_BASE_REPOSITORIO = "http://xbmc-tvalacarta.googlecode.com/svn/trunk/" + PLUGIN_NAME
LOCAL_FILE = os.path.join(ROOT_DIR, PLUGIN_NAME + "-")
DIRECTORIO_PATH_CONFIG = os.path.join(config.get_data_path(), 'channels')
PATH_LIST_CHANNELS_JSON = os.path.join(config.get_data_path(),
                                       "list_channels.json")
PATH_LIST_SERVERS_JSON = os.path.join(config.get_data_path(),
                                      "list_servers.json")

try:
    logger.info("[updater.py] get_platform=" + config.get_platform())
    logger.info("[updater.py] get_system_platform=" +
                config.get_system_platform())

    REMOTE_FILE = "http://blog.tvalacarta.info/descargas/" + PLUGIN_NAME
    if config.get_platform() == "xbmcdharma" and config.get_system_platform(
    ) == "xbox":
        # Añadida a la opcion : si plataforma xbmcdharma es "True", no debe ser con la plataforma de la xbox
        # porque seria un falso "True", ya que el xbmc en las xbox no son dharma por lo tanto no existen los addons
        REMOTE_FILE = ""
    elif config.get_platform() == "xbmc":
        REMOTE_FILE += "-xbmc-plugin-"
        import xbmc
        DESTINATION_FOLDER = xbmc.translatePath("special://home/plugins/video")
    elif config.get_platform().startswith("xbmc"):
        REMOTE_FILE += config.get_platform().replace("xbmc",
                                                     "-xbmc-addon-") + "-"
        import xbmc
Example #13
0
elif thumbnail_type=="1":
    IMAGES_PATH = 'http://pelisalacarta.mimediacenter.info/banners/'
elif thumbnail_type=="2":
    IMAGES_PATH = 'http://pelisalacarta.mimediacenter.info/squares/'

ROOT_DIR = config.get_runtime_path()

REMOTE_VERSION_FILE = "http://blog.tvalacarta.info/descargas/"+PLUGIN_NAME+"-version.xml"
LOCAL_VERSION_FILE = os.path.join( ROOT_DIR , "version.xml" )
LOCAL_FILE = os.path.join( ROOT_DIR , PLUGIN_NAME+"-" )

try:
    # Añadida a la opcion : si plataforma xbmcdharma es "True", no debe ser con la plataforma de la xbox
    # porque seria un falso "True", ya que el xbmc en las xbox no son dharma por lo tanto no existen los addons
    logger.info("[updater.py] get_platform="+config.get_platform())
    logger.info("[updater.py] get_system_platform="+config.get_system_platform())
    if config.get_platform()=="xbmcdharma" and not config.get_system_platform() == "xbox":
        import xbmc
        REMOTE_FILE = "http://blog.tvalacarta.info/descargas/"+PLUGIN_NAME+"-xbmc-addon-dharma-"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="xbmceden":
        import xbmc
        REMOTE_FILE = "http://blog.tvalacarta.info/descargas/"+PLUGIN_NAME+"-xbmc-addon-eden-"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="xbmcfrodo":
        import xbmc
        REMOTE_FILE = "http://blog.tvalacarta.info/descargas/"+PLUGIN_NAME+"-xbmc-addon-frodo-"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="xbmcgotham":
        import xbmc
        REMOTE_FILE = "http://blog.tvalacarta.info/descargas/"+PLUGIN_NAME+"-xbmc-addon-gotham-"
elif thumbnail_type=="1":
    IMAGES_PATH = 'http://media.tvalacarta.info/pelisalacarta/banners/'
elif thumbnail_type=="2":
    IMAGES_PATH = 'http://media.tvalacarta.info/pelisalacarta/squares/'

ROOT_DIR = config.get_runtime_path()

REMOTE_VERSION_FILE = "https://raw.githubusercontent.com/streamondemand/plugin.video.streamondemand/master/version.xml"
LOCAL_VERSION_FILE = os.path.join( ROOT_DIR , "version.xml" )
LOCAL_FILE = os.path.join( ROOT_DIR , config.PLUGIN_NAME+"-" )

try:
    # Añadida a la opcion : si plataforma xbmcdharma es "True", no debe ser con la plataforma de la xbox
    # porque seria un falso "True", ya que el xbmc en las xbox no son dharma por lo tanto no existen los addons
    logger.info("streamondemand.core.updater get_platform="+config.get_platform())
    logger.info("streamondemand.core.updater get_system_platform="+config.get_system_platform())
    if config.get_platform()=="kodi-jarvis":
        import xbmc
        REMOTE_FILE = "https://github.com/streamondemand/plugin.video.streamondemand/archive/master.zip"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="kodi-isengard":
        import xbmc
        REMOTE_FILE = "https://github.com/streamondemand/plugin.video.streamondemand/archive/master.zip"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="kodi-helix":
        import xbmc
        REMOTE_FILE = "https://github.com/streamondemand/plugin.video.streamondemand/archive/master.zip"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="xbmc-eden":
        import xbmc
        REMOTE_FILE = "https://github.com/streamondemand/plugin.video.streamondemand/archive/master.zip"
Example #15
0
## Full path of the remote file version.
REMOTE_VERSION_FILE = "https://raw.githubusercontent.com/orione7/plugin.video.streamondemand-pureita/master/version.xml"

## Full path of the local file version.
LOCAL_VERSION_FILE = os.path.join( ROOT_DIR , "version.xml" )

## Full path to the local .zip file. It includes the beginning of the file name.
## Later, the version that you correspoda, name of the platform and the extension .zip is added.
LOCAL_FILE = os.path.join( ROOT_DIR , "plugin.video."+config.PLUGIN_NAME+"-master" )

try:
    # Añadida a la opcion : si plataforma xbmcdharma es "True", no debe ser con la plataforma de la xbox
    # porque seria un falso "True", ya que el xbmc en las xbox no son dharma por lo tanto no existen los addons
    logger.info("streamondemand-pureita.core.updater get_platform="+config.get_platform())
    logger.info("streamondemand-pureita.core.updater get_system_platform="+config.get_system_platform())
    if config.get_platform()=="kodi-isengard":
        import xbmc
        REMOTE_FILE = "https://raw.githubusercontent.com/orione7/plugin.video.streamondemand-pureita/master/"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="kodi-helix":
        import xbmc
        REMOTE_FILE = "https://raw.githubusercontent.com/orione7/plugin.video.streamondemand-pureita/master/"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="xbmceden":
        import xbmc
        REMOTE_FILE = "https://raw.githubusercontent.com/orione7/plugin.video.streamondemand-pureita/master/"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="xbmcfrodo":
        import xbmc
        REMOTE_FILE = "https://raw.githubusercontent.com/orione7/plugin.video.streamondemand-pureita/master/"
Example #16
0
elif thumbnail_type=="1":
    IMAGES_PATH = 'http://media.tvalacarta.info/pelisalacarta/banners/'
elif thumbnail_type=="2":
    IMAGES_PATH = 'http://media.tvalacarta.info/pelisalacarta/squares/'

ROOT_DIR = config.get_runtime_path()

REMOTE_VERSION_FILE = "http://descargas.tvalacarta.info/"+config.PLUGIN_NAME+"-version.xml"
LOCAL_VERSION_FILE = os.path.join( ROOT_DIR , "version.xml" )
LOCAL_FILE = os.path.join( ROOT_DIR , config.PLUGIN_NAME+"-" )

try:
    # Añadida a la opcion : si plataforma xbmcdharma es "True", no debe ser con la plataforma de la xbox
    # porque seria un falso "True", ya que el xbmc en las xbox no son dharma por lo tanto no existen los addons
    logger.info("pelisalacarta.core.updater get_platform="+config.get_platform())
    logger.info("pelisalacarta.core.updater get_system_platform="+config.get_system_platform())
    if config.get_platform()=="kodi-jarvis":
        import xbmc
        REMOTE_FILE = "http://descargas.tvalacarta.info/"+config.PLUGIN_NAME+"-kodi-jarvis-"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="kodi-isengard":
        import xbmc
        REMOTE_FILE = "http://descargas.tvalacarta.info/"+config.PLUGIN_NAME+"-kodi-isengard-"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="kodi-helix":
        import xbmc
        REMOTE_FILE = "http://descargas.tvalacarta.info/"+config.PLUGIN_NAME+"-kodi-helix-"
        DESTINATION_FOLDER = xbmc.translatePath( "special://home/addons")
    elif config.get_platform()=="xbmc-eden":
        import xbmc
        REMOTE_FILE = "http://descargas.tvalacarta.info/"+config.PLUGIN_NAME+"-xbmc-eden-"