Пример #1
0
def peamenyy(params):
    plugintools.log(pnimi+vod_channels("TWFpbiBNZW51")+repr(params))
    load_channels()
    if not lehekylg:
       plugintools.open_settings_dialog()
    if uuendused == "true":
       kontrolli_uuendusi()
    channels = kontroll()
    if channels == 1:
       plugintools.log(pnimi+vod_channels("TG9naW4gU3VjY2Vzcw=="))
       plugintools.add_item( action=vod_channels("ZXhlY3V0ZV9haW5mbw=="),   title=vod_channels("TXkgQWNjb3VudA==") , thumbnail="" , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
       plugintools.add_item( action=vod_channels("c2VjdXJpdHlfY2hlY2s="),  title=vod_channels("TGl2ZSBUVg==") , thumbnail="" , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
       plugintools.add_item( action=vod_channels("ZGV0ZWN0X21vZGlmaWNhdGlvbg=="),   title=vod_channels("VmlkZW8gT24gRGVtYW5k") , thumbnail="" , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
       plugintools.add_item( action=vod_channels("bGljZW5zZV9jaGVjaw=="), title=vod_channels("U2V0dGluZ3M=") , thumbnail="" , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=") ), folder=False )
       plugintools.set_view( plugintools.LIST )
    else:
       plugintools.log(pnimi+vod_channels("TG9naW4gZmFpbGVk"))
       plugintools.message(vod_channels("TG9naW4gZmFpbGVk"), vod_channels("UG9zc2libGUgcmVhc29uczogV3JvbmcgaG9zdCxwb3J0LHVzZXJuYW1lIG9yIHBhc3MuICAgICAgICAgIFBsZWFzZSByZWNvbmZpZ3VyZSAlcyBwbHVnaW4gd2l0aCBjb3JyZWN0IGRldGFpbHMh")%(pnimi))
       exit()  
    if plugintools.get_setting("improve")=="true":
        tseaded = xbmc.translatePath(sync_data("c3BlY2lhbDovL3VzZXJkYXRhL2FkdmFuY2Vkc2V0dGluZ3MueG1s"))
        if not os.path.exists(tseaded):
            file = open( os.path.join(plugintools.get_runtime_path(),vod_channels("cmVzb3VyY2Vz"),sync_data("YWR2YW5jZWRzZXR0aW5ncy54bWw=")) )
            data = file.read()
            file.close()
            file = open(tseaded,"w")
            file.write(data)
            file.close()
            plugintools.message(pnimi, get_live("TmV3IGFkdmFuY2VkIHN0cmVhbWluZyBzZXR0aW5ncyBhZGRlZC4="))
Пример #2
0
def peamenyy(params):
    plugintools.log(pnimi+vod_channels("TWFpbiBNZW51")+repr(params))
    load_channels()
    if not lehekylg:
       plugintools.open_settings_dialog()
    if uuendused == "true":
       kontrolli_uuendusi()
    channels = kontroll()
    if channels == 1 and orig.mode != 5:
       plugintools.log(pnimi+vod_channels("TG9naW4gU3VjY2Vzcw=="))
       plugintools.add_item( action=vod_channels("c2VjdXJpdHlfY2hlY2s="),  title="[COLOR gold][B][I]PLAYERS LIVE[/I][/B][/COLOR]" , thumbnail=os.path.join(LOAD_LIVE,vod_channels("bGl2ZXR2LnBuZw==")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
       orig.AddDir('[COLOR deepskyblue][B]VOD/RETRO/CATCH UP[/B][/COLOR]','ExtraMenu',5,orig.Images + 'movies.png',orig.Images + 'background.png')
       orig.AddDir('[COLOR red][B]ADULT XXX[/B][/COLOR]','wizard3',10,orig.Images + 'movies.png',orig.Images + 'background.png')
       plugintools.addItem('[COLOR orange][B]Launch PVR[/B][/COLOR]','pvr',12,orig.Images + 'extras.png',orig.Images + 'background.png')
       orig.AddDir('[COLOR teal][B]Clear Cache[/B][/COLOR]','Clear Cache',7,orig.Images + 'clear.png')
       plugintools.add_item( action=vod_channels("bGljZW5zZV9jaGVjaw=="), title="[COLOR orangered][B][I]Settings[/I][/B][/COLOR]" , thumbnail=os.path.join(LOAD_LIVE,vod_channels("bG9nby5wbmc=")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")), folder=False )
       plugintools.addItem('[COLOR limegreen][B][I]Click to Setup PVR SIMPLE CLIENT[/I][/B][/COLOR]','pvr',11,orig.Images + 'extras.png',orig.Images + 'background.png')
       
	   
    elif orig.mode != 5:
       plugintools.add_item( action=vod_channels("bGljZW5zZV9jaGVjaw=="),  title="[COLOR yellow][B]Click here to enter login[/B][/COLOR]" , thumbnail=os.path.join(LOAD_LIVE,vod_channels("bG9nby5wbmc=")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=False )

       orig.AddDir('[COLOR yellow][B]Click here to refresh after login details have been entered[/B][/COLOR]','Clear Cache',7,orig.Images + 'logo.png')
    if plugintools.get_setting("improve")=="true":
        tseaded = xbmc.translatePath(sync_data("c3BlY2lhbDovL3VzZXJkYXRhL2FkdmFuY2Vkc2V0dGluZ3MueG1s"))
        if not os.path.exists(tseaded):
            file = open( os.path.join(plugintools.get_runtime_path(),vod_channels("cmVzb3VyY2Vz"),sync_data("YWR2YW5jZWRzZXR0aW5ncy54bWw=")) )
            data = file.read()
            file.close()
            file = open(tseaded,"w")
            file.write(data)
            file.close()
            plugintools.message(pnimi, get_live("TmV3IGFkdmFuY2VkIHN0cmVhbWluZyBzZXR0aW5ncyBhZGRlZC4="))
Пример #3
0
def change_password(item):
	logger.info("tvalacarta.channels.configuracion change_password")

	old_password = plugintools.keyboard_input("","Introduce tu ANTIGUA contraseña",hidden=True)
	if len(old_password)<6:
		plugintools.message("Cambiar contraseña","La contraseña debe tener al menos 6 caracteres")
		return

	password = plugintools.keyboard_input("","Introduce tu NUEVA contraseña",hidden=True)
	if len(password)<6:
		plugintools.message("Cambiar contraseña","La contraseña debe tener al menos 6 caracteres")
		return

	password_confirmation = plugintools.keyboard_input("","Confirma tu NUEVA contraseña",hidden=True)

	if password<>password_confirmation:
		plugintools.message("Cambiar contraseña","La contraseña y la confirmacion", "deben ser iguales")
		return

	result = api.accounts_change_password(old_password,password)

	if not result["error"]:
		plugintools.message("Cambiar contraseña","Tu contraseña ha sido modificada")
	else:
		plugintools.message("Cambiar contraseña","Error al cambiar la contraseña", result["error_message"] )

	plugintools.refresh_items()
Пример #4
0
def main_list(params): # Main menu
    plugintools.log("freshstart.main_list "+repr(params)); yes_pressed=plugintools.message_yes_no(AddonTitle,"Do you wish to restore your","Kodi configuration to default settings?")
    if yes_pressed:
        addonPath=xbmcaddon.Addon(id=AddonID).getAddonInfo('path'); addonPath=xbmc.translatePath(addonPath); 
        xbmcPath=os.path.join(addonPath,"..",".."); xbmcPath=os.path.abspath(xbmcPath); plugintools.log("freshstart.main_list xbmcPath="+xbmcPath); failed=False
        try:
            for root, dirs, files in os.walk(xbmcPath,topdown=False):
                for name in files:
                    try: os.remove(os.path.join(root,name))
                    except:
                        if name not in ["Addons15.db","MyVideos75.db","Textures13.db","xbmc.log"]: failed=True
                        plugintools.log("Error removing "+root+" "+name)
                for name in dirs:
                    try: os.rmdir(os.path.join(root,name))
                    except:
                        if name not in ["Database","userdata"]: failed=True
                        plugintools.log("Error removing "+root+" "+name)
            if not failed: plugintools.log("freshstart.main_list All user files removed, you now have a clean install"); plugintools.message(AddonTitle,"The process is complete, you're now back to a fresh Kodi configuration!","Please reboot your system or restart Kodi in order for the changes to be applied.")
            else: plugintools.log("freshstart.main_list User files partially removed"); plugintools.message(AddonTitle,"The process is finished, you're now back to a fresh Kodi configuration!","Please reboot your system or restart Kodi in order for the changes to be applied.")       
        except: plugintools.message(AddonTitle,"Problem found","Your settings has not been changed"); import traceback; plugintools.log(traceback.format_exc()); plugintools.log("freshstart.main_list NOT removed")
        sourcesFile = os . path . join ( xbmc . translatePath ( 'special://home' ) , 'userdata' , 'sources.xml' )
        sourcesFolder = os . path . join ( xbmc . translatePath ( 'special://home' ) , 'userdata' )
        if not os . path . exists ( sourcesFolder ) :
            os.makedirs( sourcesFolder )
            newSources = open ( sourcesFile , mode = 'w' )
            newSources . write ( '<sources><files><source><name>JetStream Repo</name><path pathversion="1">http://jtstrm.tv/r/</path></source></files></sources>' )
            newSources . close ( )
        plugintools.add_item(action="",title="Done",folder=False)
    else: plugintools.message(AddonTitle,"Your settings","has not been changed"); plugintools.add_item(action="",title="Done",folder=False)
Пример #5
0
def get_all_versions(item):
    logger.info()

    itemlist = []

    # Lee la versión local
    from core import versiontools

    # Descarga la lista de versiones
    from core import api
    api_response = api.plugins_get_all_packages()

    if api_response["error"]:
        plugintools.message(
            "Error",
            "Se ha producido un error al descargar la lista de versiones")
        return

    for entry in api_response["body"]:

        if entry["package"] == "plugin":
            title = "tvalacarta " + entry["tag"] + " (Publicada " + entry[
                "date"] + ")"
            local_version_number = versiontools.get_current_plugin_version()
        elif entry["package"] == "channels":
            title = "Canales (Publicada " + entry["date"] + ")"
            local_version_number = versiontools.get_current_channels_version()
        elif entry["package"] == "servers":
            title = "Servidores (Publicada " + entry["date"] + ")"
            local_version_number = versiontools.get_current_servers_version()
        else:
            title = entry["package"] + " (Publicada " + entry["date"] + ")"
            local_version_number = None

        title_color = ""

        if local_version_number is None:
            title = title

        elif entry["version"] == local_version_number:
            title += " ACTUAL"

        elif entry["version"] > local_version_number:
            title = "[COLOR yellow]" + title + "[/COLOR]"

        else:
            title_color = "[COLOR 0xFF666666]" + title + "[/COLOR]"

        itemlist.append(
            Item(channel=CHANNELNAME,
                 title=title,
                 url=entry["url"],
                 filename=entry["filename"],
                 package=entry["package"],
                 version=str(entry["version"]),
                 text_color=title_color,
                 action="download_and_install_package",
                 folder=False))

    return itemlist
def BUILDMENU_BETA():

    key = base64.b64encode(plugintools.get_setting("beta"))

    link = Common.OPEN_URL(BetaKeys).replace('\n', '').replace('\r', '')
    match = re.compile('passkey="(.+?)"').findall(link)
    for passkey in match:
        if key == passkey:
            link = Common.OPEN_URL(BetaWiz).replace('\n', '').replace('\r', '')
            match = re.compile(
                'name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?ersion="(.+?)"'
            ).findall(link)
            for name, url, iconimage, fanart, description in match:
                Common.addDir(name, url, 90, ART + name + '.png',
                              ART + name + '.png', description)
        else:
            link = Common.OPEN_URL(BetaVIP).replace('\n', '').replace('\r', '')
            match = re.compile('passkey="(.+?)"').findall(link)
            for passkey in match:
                if key == passkey:
                    link = Common.OPEN_URL(BetaVIPWiz).replace('\n',
                                                               '').replace(
                                                                   '\r', '')
                    match = re.compile(
                        'name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?ersion="(.+?)"'
                    ).findall(link)
                    for name, url, iconimage, fanart, description in match:
                        Common.addDir(name, url, 90, ART + name + '.png',
                                      ART + name + '.png', description)
                else:
                    plugintools.message(
                        AddonTitle, "Invalid Key: Check Details",
                        "[COLOR yellow]https://www.facebook.com/groups/1735809796639007/"
                    )
Пример #7
0
def peamenyy(params):
    plugintools.log(pnimi+vod_channels("TWFpbiBNZW51")+repr(params))
    load_channels()
    if not lehekylg:
       plugintools.open_settings_dialog()
    if uuendused == "true":
       kontrolli_uuendusi()
    channels = kontroll()
    if channels == 1 and orig.mode != 5:
       plugintools.log(pnimi+vod_channels("TG9naW4gU3VjY2Vzcw=="))
       plugintools.add_item( action=vod_channels("ZXhlY3V0ZV9haW5mbw=="),   title="My Account", thumbnail=os.path.join(LOAD_LIVE,vod_channels("bXlhY2MucG5n")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
       plugintools.add_item( action=vod_channels("c2VjdXJpdHlfY2hlY2s="),  title="Live TV" , thumbnail=os.path.join(LOAD_LIVE,vod_channels("bGl2ZXR2LnBuZw==")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
       plugintools.add_item( action=vod_channels("ZGV0ZWN0X21vZGlmaWNhdGlvbg=="),   title=vod_channels("Vk9E") , thumbnail=os.path.join(LOAD_LIVE,vod_channels("dm9kLnBuZw==")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
       
       orig.AddDir('Clear Cache','Clear Cache',7,orig.Images + 'cache.png')
       plugintools.add_item( action=vod_channels("bGljZW5zZV9jaGVjaw=="), title="Settings" , thumbnail=os.path.join(LOAD_LIVE,vod_channels("c2V0dGluZ3MuanBn")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=") ), folder=False )
       plugintools.set_view( plugintools.LIST )
    elif orig.mode != 5:
       plugintools.add_item( action=vod_channels("bGljZW5zZV9jaGVjaw=="),  title="Click to login" , thumbnail=os.path.join(LOAD_LIVE,vod_channels("ZGVmYXVsdGxvZ28ucG5n")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=False )
       plugintools.add_item( action=vod_channels("bGljZW5zZV9jaGVjaw=="), title="Settings" , thumbnail=os.path.join(LOAD_LIVE,vod_channels("c2V0dGluZ3MuanBn")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=") ), folder=False )
       orig.AddDir('Clear Cache','Clear Cache',7,orig.Images + 'cache.png')
    if plugintools.get_setting("improve")=="true":
        tseaded = xbmc.translatePath(sync_data("c3BlY2lhbDovL3VzZXJkYXRhL2FkdmFuY2Vkc2V0dGluZ3MueG1s"))
        if not os.path.exists(tseaded):
            file = open( os.path.join(plugintools.get_runtime_path(),vod_channels("cmVzb3VyY2Vz"),sync_data("YWR2YW5jZWRzZXR0aW5ncy54bWw=")) )
            data = file.read()
            file.close()
            file = open(tseaded,"w")
            file.write(data)
            file.close()
            plugintools.message(pnimi, get_live("TmV3IGFkdmFuY2VkIHN0cmVhbWluZyBzZXR0aW5ncyBhZGRlZC4="))
Пример #8
0
def peamenyy(params):
    plugintools.log(pnimi+vod_channels("TWFpbiBNZW51")+repr(params))
##    load_channels()
    if not lehekylg:
       plugintools.open_settings_dialog()
    if uuendused == "true":
       kontrolli_uuendusi()
    channels = kontroll()
    if channels == 1:
       plugintools.log(pnimi+vod_channels("TG9naW4gU3VjY2Vzcw=="))
       plugintools.add_item( action=vod_channels("ZXhlY3V0ZV9haW5mbw=="),   title=vod_channels("TXkgQWNjb3VudA==") , thumbnail="" , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
       plugintools.add_item( action=vod_channels("c2VjdXJpdHlfY2hlY2s="),  title=vod_channels("TGl2ZSBUVg==") , thumbnail="" , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
       plugintools.add_item( action=vod_channels("ZGV0ZWN0X21vZGlmaWNhdGlvbg=="),   title=vod_channels("VmlkZW8gT24gRGVtYW5k") , thumbnail="" , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
       plugintools.add_item( action=vod_channels("bGljZW5zZV9jaGVjaw=="), title=vod_channels("U2V0dGluZ3M=") , thumbnail="" , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=") ), folder=False )
       ##plugintools.set_view( plugintools.LIST )
    else:
       plugintools.log(pnimi+vod_channels("TG9naW4gZmFpbGVk"))
       plugintools.message(vod_channels("TG9naW4gZmFpbGVk"), vod_channels("UG9zc2libGUgcmVhc29uczogV3JvbmcgaG9zdCxwb3J0LHVzZXJuYW1lIG9yIHBhc3MuICAgICAgICAgIFBsZWFzZSByZWNvbmZpZ3VyZSAlcyBwbHVnaW4gd2l0aCBjb3JyZWN0IGRldGFpbHMh")%(pnimi))
       exit()
    if plugintools.get_setting("improve")=="true":
        tseaded = xbmc.translatePath(sync_data("c3BlY2lhbDovL3VzZXJkYXRhL2FkdmFuY2Vkc2V0dGluZ3MueG1s"))
        if not os.path.exists(tseaded):
            file = open( os.path.join(plugintools.get_runtime_path(),vod_channels("cmVzb3VyY2Vz"),sync_data("YWR2YW5jZWRzZXR0aW5ncy54bWw=")) )
            data = file.read()
            file.close()
            file = open(tseaded,"w")
            file.write(data)
            file.close()
            plugintools.message(pnimi, get_live("TmV3IGFkdmFuY2VkIHN0cmVhbWluZyBzZXR0aW5ncyBhZGRlZC4="))
Пример #9
0
def change_password(item):
	logger.info("tvalacarta.channels.configuracion change_password")

	old_password = plugintools.keyboard_input("","Introduce tu ANTIGUA contraseña",hidden=True)
	if len(old_password)<6:
		plugintools.message("Cambiar contraseña","La contraseña debe tener al menos 6 caracteres")
		return

	password = plugintools.keyboard_input("","Introduce tu NUEVA contraseña",hidden=True)
	if len(password)<6:
		plugintools.message("Cambiar contraseña","La contraseña debe tener al menos 6 caracteres")
		return

	password_confirmation = plugintools.keyboard_input("","Confirma tu NUEVA contraseña",hidden=True)

	if password<>password_confirmation:
		plugintools.message("Cambiar contraseña","La contraseña y la confirmacion", "deben ser iguales")
		return

	result = api.accounts_change_password(old_password,password)

	if not result["error"]:
		plugintools.message("Cambiar contraseña","Tu contraseña ha sido modificada")
	else:
		plugintools.message("Cambiar contraseña","Error al cambiar la contraseña", result["error_message"] )

	plugintools.refresh_items()
Пример #10
0
def login(item):
	logger.info("tvalacarta.channels.configuracion login")

	email = plugintools.keyboard_input( config.get_setting("account_email") ,"Introduce tu email")
	if email=="":
		return

	password = plugintools.keyboard_input("","Introduce tu contraseña",hidden=True)
	if password=="":
		return

	result = api.accounts_login( email , password)

	if not result["error"]:
		# Login con éxito, actualiza los datos y quita el id anónimo
		config.set_setting("account_type_registered","1")
		config.set_setting("account_email",email)
		config.set_setting("account_session",result["body"]["s"])
		config.set_setting("account_anonymous_id","")

		plugintools.refresh_items()
		plugintools.message("Iniciar sesión","Sesion iniciada con "+email)

	else:
		# Login sin éxito, invalida la sesión y deja el login como anónimo
		config.set_setting("account_session","")
		config.set_setting("account_type_registered","0")

		plugintools.message("Iniciar sesión","Identificacion no valida",result["error_message"])
Пример #11
0
def login(item):
    logger.info("tvalacarta.channels.configuracion login")

    email = plugintools.keyboard_input(config.get_setting("account_email"),
                                       "Introduce tu email")
    if email == "":
        return

    password = plugintools.keyboard_input("",
                                          "Introduce tu contraseña",
                                          hidden=True)
    if password == "":
        return

    result = api.accounts_login(email, password)

    if not result["error"]:
        # Login con éxito, actualiza los datos y quita el id anónimo
        config.set_setting("account_type_registered", "1")
        config.set_setting("account_email", email)
        config.set_setting("account_session", result["body"]["s"])
        config.set_setting("account_anonymous_id", "")

        plugintools.refresh_items()
        plugintools.message("Iniciar sesión", "Sesion iniciada con " + email)

    else:
        # Login sin éxito, invalida la sesión y deja el login como anónimo
        config.set_setting("account_session", "")
        config.set_setting("account_type_registered", "0")

        plugintools.message("Iniciar sesión", "Identificacion no valida",
                            result["error_message"])
Пример #12
0
def xhamster_pag(params):
    plugintools.log('[%s %s] Buscando página... %s' %
                    (addonName, addonVersion, repr(params)))

    total = params.get("extra")
    plugintools.log("Número total de páginas: " + total)
    user_pag = ""
    #user_pag = plugintools.keyboard_input(user_pag)
    user_pag = xbmcgui.Dialog().numeric(
        0, 'Introduzca núm. entre 1 y ' +
        total)  # Solicitamos al usuario número de página a mostrar
    plugintools.log("Página solicitada: " + user_pag)
    if user_pag == "":
        errormsg = plugintools.message(
            "Movie Ultra 7K", "Por favor, introduzca la pagina a buscar")
    else:
        try:
            if int(user_pag) <= int(total):
                url = params.get(
                    "url")  # Cogemos la URL del diccionario params
                num_pag = plugintools.find_single_match(
                    url, '\-([0-9]*).html').strip(
                    )  # Extraemos el número de la página actual
                new_pag = url.replace(num_pag, user_pag).strip(
                )  # Reemplazamos página actual por la que el usuario desea
                params = plugintools.get_params()
                params["url"] = new_pag
                xhamster1(params)
            else:
                errormsg = plugintools.message(
                    "Movie Ultra 7K",
                    "Introduzca un valor inferior o igual a %s " % (total))
        except ValueError:
            errormsg = plugintools.message(
                "Movie Ultra 7K", "Por favor, introduzca un valor numérico")
Пример #13
0
def play(params):
    plugintools.log("dandb.play "+repr(params))

    #plugintools.set_view(plugintools.LIST)

    try:
        url = params.get("url")
        plugintools.log("dandb.play url="+repr(url))

        if url=="":
            return

        from urlresolver.types import HostedMediaFile
        hosted_media_file = HostedMediaFile(url=url)
        plugintools.log("dandb.play hosted_media_file="+repr(hosted_media_file))

        try:
            media_url = hosted_media_file.resolve()
            plugintools.log("dandb.play media_url="+repr(media_url))

            if media_url:
                #plugintools.add_item( action="playable", title="Play this video from "+hosted_media_file.get_host()+"", url=media_url, isPlayable=True, folder=False )
                plugintools.play_resolved_url( media_url )    
            else:
                plugintools.play_resolved_url( url )    
        except:
            import traceback
            plugintools.log(traceback.format_exc())
            #plugintools.add_item( action="play", title="Error while getting access to video", isPlayable=True, folder=False )
            plugintools.message("D&B TV","Error while getting access to video")

    except urllib2.URLError,e:
        #plugintools.add_item( action="play", title="Error reading data, please try again", isPlayable=True, folder=False )
        plugintools.message("D&B TV","Connection error while getting access to video")
        body = ""
Пример #14
0
def ir_a(params):
    vextra = params.get("extra")
    extra = vextra[0]
    maxpag = vextra[1]
    url = params.get("url")
    #Eliminamos el número de página de la URL para poder contruir la nueva
    url = url[:url.rfind("/")]
    #Pedimos al usuario la página
    mipagina = plugintools.keyboard_input()

    if not mipagina.isdigit():
        plugintools.message("ERROR", "Por favor, introduzca un número.")
        plugintools.add_item(action="ir_a",
                             url=url,
                             title="[COLORred][B] Ir a página...[/B][/COLOR]",
                             extra=extra,
                             thumbnail=thumbnail,
                             fanart=fanart,
                             folder=True,
                             isPlayable=False)
    else:
        miurl = url + '/' + mipagina
        plugintools.add_item(action="hdfull_seccion",
                             title="[COLORred][B] Continúa a la página " +
                             str(mipagina) + "[/B][/COLOR]",
                             url=miurl,
                             thumbnail=thumbnail,
                             fanart=fanart,
                             extra=extra,
                             folder=True,
                             isPlayable=False)
Пример #15
0
def peamenyy(params):
    xbmcplugin.addSortMethod( handle=int( sys.argv[ 1 ] ), sortMethod=xbmcplugin.SORT_METHOD_TITLE )
    plugintools.add_item( action="News", title='News' , url='', thumbnail='', plot='', fanart=os.path.join(LOAD_LIVE,"dGhlYXRlci5qcGc=") , extra="", isPlayable=False, folder=True )
    plugintools.add_item( action="Radio", title='Radio' , url='', thumbnail='', plot='', fanart=os.path.join(LOAD_LIVE,"dGhlYXRlci5qcGc=") , extra="", isPlayable=False, folder=True )
    plugintools.add_item( action="TOOLS", title='Tools' , url='http://ovh.net/files/100Mio.dat', thumbnail='', plot='', fanart='' , extra="", isPlayable=False, folder=True )
    plugintools.log(pnimi+vod_channels("TWFpbiBNZW51")+repr(params))
    load_channels()
    if not lehekylg1:
       plugintools.open_settings_dialog()
    if uuendused == "true":
       updates(params)
    channels = kontroll()
    if channels == 1:
       plugintools.log(pnimi+vod_channels("TG9naW4gU3VjY2Vzcw=="))
       plugintools.add_item( action=vod_channels("ZXhlY3V0ZV9haW5mbw=="),   title=vod_channels("TXkgQWNjb3VudA==") , thumbnail="" , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
       plugintools.add_item( action=vod_channels("c2VjdXJpdHlfY2hlY2s="),  title=vod_channels("TGl2ZSBUVg==") , thumbnail="" , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
       plugintools.add_item( action=vod_channels("cnVubmVyMg=="),   title=vod_channels("VmlkZW8gT24gRGVtYW5k") , thumbnail="" , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=False )
       plugintools.add_item( action=vod_channels("bGljZW5zZV9jaGVjaw=="), title=vod_channels("U2V0dGluZ3M=") , thumbnail="" , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=") ), folder=False )
       plugintools.set_view( plugintools.LIST )
    else:
       plugintools.log(pnimi+vod_channels("TG9naW4gZmFpbGVk"))
       plugintools.message(("Login failed"),("Possible reasons: Wrong host,port,username or pass.          Please reconfigure %s plugin with correct details!")%(pnimi))
       exit()  
    if plugintools.get_setting("improve")=="true":
        tseaded = xbmc.translatePath(sync_data("c3BlY2lhbDovL3VzZXJkYXRhL2FkdmFuY2Vkc2V0dGluZ3MueG1s"))
        tseaded = xbmc.translatePath(sync_data("c3BlY2lhbDovL3VzZXJkYXRhL2FkdmFuY2Vkc2V0dGluZ3MueG1s"))
        if not os.path.exists(tseaded):
            file = open( os.path.join(plugintools.get_runtime_path(),"resources",sync_data("YWR2YW5jZWRzZXR0aW5ncy54bWw=")) )
            data = file.read()
            file.close()
            file = open(tseaded,"w")
            file.write(data)
            file.close()
            plugintools.message(pnimi, "New advanced streaming settings added.")
Пример #16
0
def settings(params):
    plugintools.log("movie4k.settings " + repr(params))

    plugintools.open_settings_dialog()

    if plugintools.get_setting("force_advancedsettings") == "true":
        # advancedsettings.xml path
        import xbmc, xbmcgui, os
        advancedsettings = xbmc.translatePath(
            "special://userdata/advancedsettings.xml")

        if not os.path.exists(advancedsettings):
            # copy advancedsettings.xml from resources to userdata
            fichero = open(
                os.path.join(plugintools.get_runtime_path(), "resources",
                             "advancedsettings.xml"))
            text = fichero.read()
            fichero.close()

            fichero = open(advancedsettings, "w")
            fichero.write(text)
            fichero.close()

            plugintools.message("movie4k",
                                "A new file userdata/advancedsettings.xml",
                                "has been created for optimal streaming")
Пример #17
0
def peamenyy(params):
    plugintools.log(pnimi+vod_channels("TWFpbiBNZW51")+repr(params))
    load_channels()
    if not lehekylg:
        plugintools.open_settings_dialog()

    channels = kontroll()
    if channels == 1 and Overlord.mode != 5 and Overlord.mode != 1:
        plugintools.set_view( plugintools.LIST )
        plugintools.log(pnimi+vod_channels("TG9naW4gU3VjY2Vzcw=="))
        plugintools.add_item( action=vod_channels("ZXhlY3V0ZV9haW5mbw=="),   title="Your Account Information", thumbnail=os.path.join(LOAD_LIVE,vod_channels("bXlhY2MucG5n")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
        plugintools.add_item( action=vod_channels("c2VjdXJpdHlfY2hlY2s="),  title="Overlord TV" , thumbnail=os.path.join(LOAD_LIVE,vod_channels("bGl2ZXR2LnBuZw==")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
        plugintools.add_item( action=vod_channels("ZGV0ZWN0X21vZGlmaWNhdGlvbg=="),   title=vod_channels("T24gRGVtYW5k") , thumbnail=os.path.join(LOAD_LIVE,vod_channels("dm9kLnBuZw==")), fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=")) , folder=True )
        plugintools.add_item( action=vod_channels("bGljZW5zZV9jaGVjaw=="), title="Your Settings" , thumbnail=os.path.join(LOAD_LIVE,vod_channels("c2V0dGluZ3MuanBn")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=") ), folder=False )
        #Overlord.AddDir('Extras','Extras',5,Overlord.Images + 'extras.png')
    elif channels != 1 and Overlord.mode != 1:
        plugintools.add_item( action=vod_channels("bGljZW5zZV9jaGVjaw=="), title="Step 1. Enter Login details here" , thumbnail=os.path.join(LOAD_LIVE,vod_channels("c2V0dGluZ3MuanBn")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=") ), folder=False )	
        plugintools.add_item( action=vod_channels("bGljZW5zZV9jaGVjazI="), title="Step 2. Click here" , thumbnail=os.path.join(LOAD_LIVE,vod_channels("c2V0dGluZ3MuanBn")) , fanart=os.path.join(LOAD_LIVE,vod_channels("YmFja2dyb3VuZC5wbmc=") ), folder=False )	
    if plugintools.get_setting("improve")=="true":
        tseaded = xbmc.translatePath(sync_data("c3BlY2lhbDovL3VzZXJkYXRhL2FkdmFuY2Vkc2V0dGluZ3MueG1s"))
        if not os.path.exists(tseaded):
            file = open( os.path.join(plugintools.get_runtime_path(),vod_channels("cmVzb3VyY2Vz"),sync_data("YWR2YW5jZWRzZXR0aW5ncy54bWw=")) )
            data = file.read()
            file.close()
            file = open(tseaded,"w")
            file.write(data)
            file.close()
            plugintools.message(pnimi, get_live("TmV3IGFkdmFuY2VkIHN0cmVhbWluZyBzZXR0aW5ncyBhZGRlZC4="))
Пример #18
0
def advance(params):
            tseaded = xbmc.translatePath(sync_data("c3BlY2lhbDovL3VzZXJkYXRhL2FkdmFuY2Vkc2V0dGluZ3MueG1s"))
            file = open( os.path.join(plugintools.get_runtime_path(),"resources",sync_data("YWR2YW5jZWRzZXR0aW5ncy54bWw=")) )
            data = file.read()
            file.close()
            file = open(tseaded,"w")
            file.write(data)
            file.close()
            plugintools.message(pnimi, "New advanced streaming settings added.")
Пример #19
0
def reset(params):
            tseaded = xbmc.translatePath("special://userdata/addon_data/plugin.video.dex/settings.xml")
            file = open( os.path.join(plugintools.get_runtime_path(),"resources",("settings.xml")))
            data = file.read()
            file.close()
            file = open(tseaded,"w")
            file.write(data)
            file.close()
            plugintools.message(pnimi, "New advanced streaming settings added.")
Пример #20
0
def reset_password(item):
	logger.info("tvalacarta.channels.configuracion reset_password")

	email = plugintools.keyboard_input( config.get_setting("account_email") ,"Introduce tu email")
	result = api.accounts_reset_password_request( email )

	if result["error"]:
		plugintools.message("Olvidé mi contraseña","Se ha producido un error",result["error_message"])
		return

	request_id = result["body"]["request_id"]
	
	canceled = plugintools.message("Olvidé mi contraseña","Te llegará un correo con un enlace","Haz click y luego pulsa OK para introducir tu nueva contraseña")

	if not canceled:
		password = plugintools.keyboard_input("","Introduce tu contraseña",hidden=True)
		password_confirmation = plugintools.keyboard_input("","Confirma tu contraseña",hidden=True)

		result = api.accounts_reset_password_confirmation(request_id , password)

		if not result["error"]:
			plugintools.message("Olvidé mi contraseña","Tu contraseña ha sido modificada")
		else:
			plugintools.message("Olvidé mi contraseña","Error al cambiar la contraseña", result["error_message"] )

	else:
		plugintools.message("Olvidé mi contraseña","El proceso se ha interrumpido","Tu contraseña no ha cambiado")

	plugintools.refresh_items()
def update_library():
    plugintools.log("NetflixAndroid.update_library")

    # TvShows scraper
    num_tv_shows = tvshows_scraper()

    # Movies scraper
    num_movies = movies_scraper()

    plugintools.message("Total Scraped Items", "Movies:" + num_movies,
                        "TvShows:" + num_tv_shows)
Пример #22
0
def general_playlists(params):
    plugintools.log("soritvch.general_playlists " + repr(params))
    #data2 = xbmcgui.Dialog().input("Search to youtube")
    last_search = plugintools.get_setting("last_search")
    data2 = plugintools.keyboard_input(last_search)
    if not data2:
        cap1 = plugintools.get_localized_string(50001)
        cap2 = plugintools.get_localized_string(50002)  # Canceled
        plugintools.message(cap1, cap2)
        exit = sys.exit()
        return exit
    data2 = data2.strip()
    plugintools.set_setting("last_search", data2)
    data2 = data2.replace(" ", "+")
    sch_lng = plugintools.get_setting("sch_lng")
    #plugintools.message("-",sch_lng)
    url = params.get("url") + data2 + "+" + sch_lng
    #xbmcgui.Dialog().ok("Search to youtube", url)

    try:
        data = plugintools.read(url)
    except:
        cap1 = plugintools.get_localized_string(50001)
        cap2 = plugintools.get_localized_string(50003)  # 0 Results
        plugintools.message(cap1, cap2)
        exit = sys.exit()
        return exit

    plugintools.log("data=" + data)
    pattern = '<h3 class="yt-lockup-title "><a href="(.*?)</h3>'
    matches = plugintools.find_multiple_matches(data, pattern)

    for entry in matches:
        plugintools.log("=====================================")
        plugintools.log("entry=" + entry)
        video_id = plugintools.find_single_match(entry, 'v=(.*?)" class')
        plugintools.log("video_id=" + video_id)
        title = plugintools.find_single_match(entry, 'dir="ltr">(.*?)</a>')
        title2 = plugintools.find_single_match(entry, '"> -(.*?).</span>')
        title = title + "[COLOR yellow]-" + title2 + "[/COLOR]"
        title = title.replace('&quot;', '"')
        title = title.strip()
        plot = ""
        thumbnail = "http://img.youtube.com/vi/" + video_id + "/0.jpg"
        url = "plugin://plugin.video.youtube/?path=/root/video&action=play_video&videoid=" + video_id
        plugintools.add_item(action="play",
                             title=title,
                             plot=plot,
                             url=url,
                             thumbnail=thumbnail,
                             isPlayable=False,
                             folder=False)
Пример #23
0
def register(item):
	logger.info("tvalacarta.channels.configuracion register")

	email = plugintools.keyboard_input( config.get_setting("account_email") ,"Introduce tu email")
	password = plugintools.keyboard_input("","Introduce tu contraseña",hidden=True)
	if len(password)<6:
		plugintools.message("Crear nueva cuenta","La contraseña debe tener al menos 6 caracteres")
		return

	password_confirmation = plugintools.keyboard_input("","Confirma tu contraseña",hidden=True)

	if password<>password_confirmation:
		plugintools.message("Crear nueva cuenta","La contraseña y la confirmacion", "deben ser iguales")
		return

	result = api.accounts_register( email , password )

	if not result["error"]:
		config.set_setting("account_type_registered","1")
		config.set_setting("account_email",email)
		config.set_setting("account_session",result["body"]["s"])

		plugintools.refresh_items()

		plugintools.message("Crear nueva cuenta","Sesion iniciada con "+email)
	else:
		plugintools.message("Crear nueva cuenta","Error al crear la nueva cuenta", result["error_message"] )
Пример #24
0
def register(item):
	logger.info("tvalacarta.channels.configuracion register")

	email = plugintools.keyboard_input( config.get_setting("account_email") ,"Introduce tu email")
	password = plugintools.keyboard_input("","Introduce tu contraseña",hidden=True)
	if len(password)<6:
		plugintools.message("Crear nueva cuenta","La contraseña debe tener al menos 6 caracteres")
		return

	password_confirmation = plugintools.keyboard_input("","Confirma tu contraseña",hidden=True)

	if password<>password_confirmation:
		plugintools.message("Crear nueva cuenta","La contraseña y la confirmacion", "deben ser iguales")
		return

	result = api.accounts_register( email , password )

	if not result["error"]:
		config.set_setting("account_type_registered","1")
		config.set_setting("account_email",email)
		config.set_setting("account_session",result["body"]["s"])

		plugintools.refresh_items()

		plugintools.message("Crear nueva cuenta","Sesion iniciada con "+email)
	else:
		plugintools.message("Crear nueva cuenta","Error al crear la nueva cuenta", result["error_message"] )
Пример #25
0
def main_list(params):  # Main menu
    plugintools.log("freshstart.main_list " + repr(params))
    yes_pressed = plugintools.message_yes_no(
        AddonTitle, "Do you wish to restore your",
        "Kodi configuration to default settings?")
    if yes_pressed:
        addonPath = xbmcaddon.Addon(id=AddonID).getAddonInfo('path')
        addonPath = xbmc.translatePath(addonPath)
        xbmcPath = os.path.join(addonPath, "..", "..")
        xbmcPath = os.path.abspath(xbmcPath)
        plugintools.log("freshstart.main_list xbmcPath=" + xbmcPath)
        failed = False
        try:
            for root, dirs, files in os.walk(xbmcPath, topdown=False):
                for name in files:
                    try:
                        os.remove(os.path.join(root, name))
                    except:
                        if name not in [
                                "Addons15.db", "MyVideos75.db",
                                "Textures13.db", "xbmc.log"
                        ]:
                            failed = True
                        plugintools.log("Error removing " + root + " " + name)
                for name in dirs:
                    try:
                        os.rmdir(os.path.join(root, name))
                    except:
                        if name not in ["Database", "userdata"]: failed = True
                        plugintools.log("Error removing " + root + " " + name)
            if not failed:
                plugintools.log(
                    "freshstart.main_list All user files removed, you now have a clean install"
                )
                plugintools.message(
                    AddonTitle,
                    "The process is complete, you're now back to a fresh Kodi configuration!",
                    "Please reboot your system or restart Kodi in order for the changes to be applied."
                )
            else:
                plugintools.log(
                    "freshstart.main_list User files partially removed")
                plugintools.message(
                    AddonTitle,
                    "The process is finished, you're now back to a fresh Kodi configuration!",
                    "Please reboot your system or restart Kodi in order for the changes to be applied."
                )
        except:
            plugintools.message(AddonTitle, "Problem found",
                                "Your settings has not been changed")
            import traceback
            plugintools.log(traceback.format_exc())
            plugintools.log("freshstart.main_list NOT removed")
        plugintools.add_item(action="", title="Done", folder=False)
    else:
        plugintools.message(AddonTitle, "Your settings",
                            "has not been changed")
        plugintools.add_item(action="", title="Done", folder=False)
Пример #26
0
def FRESHSTART(params):
    plugintools.log("freshstart.main_list " + repr(params))
    yes_pressed = plugintools.message_yes_no(
        AddonTitle,
        "Wil je de standaard instellingen terug zetten van je Kodi installatie?"
    )
    if yes_pressed:
        addonPath = xbmcaddon.Addon(id=AddonID).getAddonInfo('path')
        addonPath = xbmc.translatePath(addonPath)
        xbmcPath = os.path.join(addonPath, "..", "..")
        xbmcPath = os.path.abspath(xbmcPath)
        plugintools.log("freshstart.main_list xbmcPath=" + xbmcPath)
        failed = False
        try:
            for root, dirs, files in os.walk(xbmcPath, topdown=True):
                dirs[:] = [d for d in dirs if d not in EXCLUDES]
                for name in files:
                    try:
                        os.remove(os.path.join(root, name))
                    except:
                        if name not in [
                                "Addons15.db", "MyVideos75.db",
                                "Textures13.db", "xbmc.log"
                        ]:
                            failed = True
                        plugintools.log("Error removing " + root + " " + name)
                for name in dirs:
                    try:
                        os.rmdir(os.path.join(root, name))
                    except:
                        if name not in ["Database", "userdata"]: failed = True
                        plugintools.log("Error removing " + root + " " + name)
            if not failed:
                plugintools.log(
                    "freshstart.main_list All user files removed, you now have a clean install"
                )
                plugintools.message(
                    AddonTitle,
                    "Schone Installatie is klaar, je hebt nu een verse Kodi configuratie met KAOSbox Install. Herstart nu je box!"
                )
            else:
                plugintools.log(
                    "freshstart.main_list User files partially removed")
                plugintools.message(
                    AddonTitle,
                    "Schone Installatie is klaar, je hebt nu een verse Kodi configuratie met KAOSbox Install. Herstart nu je box!"
                )
        except:
            plugintools.message(AddonTitle, "Problem found",
                                "Your settings has not been changed")
            import traceback
            plugintools.log(traceback.format_exc())
            plugintools.log("freshstart.main_list NOT removed")
        plugintools.add_item(action="", title="Kodi Sluiten", folder=False)
    else:
        plugintools.message(AddonTitle,
                            "Er is geen schone installatie gedaan.")
        plugintools.add_item(action="", title="Klaar", folder=False)
Пример #27
0
def logout(item):
	logger.info("tvalacarta.channels.configuracion logout")

	confirmation = plugintools.message_yes_no("Cerrar sesión","¿Seguro que quieres cerrar la sesion?")

	if confirmation:
		api.accounts_logout( config.get_setting("account_session") )
		config.set_setting( "account_session" , "")
		config.set_setting( "account_type_registered" , "0")
		config.set_setting( "account_anonymous_id" , "" )

		plugintools.refresh_items()

		plugintools.message("Cerrar sesión","Sesion cerrada")
	else:
		plugintools.message("Cerrar sesión","La sesion sigue abierta")
Пример #28
0
def monova0_bum(params):
    plugintools.log('[%s %s] [BUM+] Monova... %s' % (addonName, addonVersion, repr(params)))

    thumbnail = 'http://upload.wikimedia.org/wikipedia/en/f/f4/Monova.jpg'
    fanart = 'http://www.gadgethelpline.com/wp-content/uploads/2013/10/Digital-Piracy.png'    
    show = 'list'
    plugintools.modo_vista(show)
    
    try:
        texto = "";
        texto='the strain spanish'
        texto = plugintools.keyboard_input(texto)
        plugintools.set_setting("alluc_search",texto)
        params["plot"]=texto
        texto = texto.lower()
        if texto == "":
            errormsg = plugintools.message("PalcoTV","Por favor, introduzca el término a buscar")
            #return errormsg
        else:
            texto = texto.lower().strip()
            texto = texto.replace(" ", "+")
            
            # https://isohunt.to/torrents/?ihq=the+strain+spanish
            url = 'https://www.monova.org/search.php?sort=5&term='+texto+'&verified=1'
            params["url"]=url            
            url = params.get("url")
            referer = 'https://monova.org'
            monova1_bum(params)
    except:
         pass
Пример #29
0
def isohunt0_bum(params):
    plugintools.log('[%s %s] [BUM+] Isohunt... %s' % (addonName, addonVersion, repr(params)))

    thumbnail = 'http://www.userlogos.org/files/logos/dfordesmond/isohunt%201.png'
    fanart = 'http://2.bp.blogspot.com/_NP40rzexJsc/TMGWrixybJI/AAAAAAAAHCU/ij1--_DQEZo/s1600/Keep_Seeding____by_Carudo.jpg'    
    show = 'list'
    plugintools.modo_vista(show)
    
    try:
        texto = "";
        texto='riddick'
        texto = plugintools.keyboard_input(texto)
        plugintools.set_setting("alluc_search",texto)
        params["plot"]=texto
        texto = texto.lower()
        if texto == "":
            errormsg = plugintools.message("PalcoTV","Por favor, introduzca el canal a buscar")
            #return errormsg
        else:
            texto = texto.lower().strip()
            texto = texto.replace(" ", "+")
            
            # https://isohunt.to/torrents/?ihq=the+strain+spanish
            url = 'https://isohunt.to/torrents/?ihq='+texto+'&Torrent_sort=seeders.desc'
            params["url"]=url            
            url = params.get("url")
            referer = 'https://isohunt.to'
            isohunt1_bum(params)
    except:
         pass       
Пример #30
0
def bitsnoop0_bum(params):
    plugintools.log('[%s %s] [BUM+] BitSnoop... %s' % (addonName, addonVersion, repr(params)))

    try:
        texto = "";
        texto='riddick'
        texto = plugintools.keyboard_input(texto)
        plugintools.set_setting("alluc_search",texto)
        params["plot"]=texto
        texto = texto.lower()
        if texto == "":
            errormsg = plugintools.message("PalcoTV","Por favor, introduzca el canal a buscar")
            #return errormsg
        else:
            texto = texto.lower().strip()
            texto = texto.replace(" ", "+")
            
            # http://bitsnoop.com/search/all/the+strain+spanish/c/d/1/
            url = 'http://bitsnoop.com/search/all/'+texto+'/c/d/1/'
            params["url"]=url            
            url = params.get("url")
            referer = 'http://www.bitsnoop.com'
            bitsnoop1_bum(params)
    except:
         pass    
Пример #31
0
def logout(item):
	logger.info("tvalacarta.channels.configuracion logout")

	confirmation = plugintools.message_yes_no("Cerrar sesión","¿Seguro que quieres cerrar la sesion?")

	if confirmation:
		api.accounts_logout( config.get_setting("account_session") )
		config.set_setting( "account_session" , "")
		config.set_setting( "account_type_registered" , "0")
		config.set_setting( "account_anonymous_id" , "" )

		plugintools.refresh_items()

		plugintools.message("Cerrar sesión","Sesion cerrada")
	else:
		plugintools.message("Cerrar sesión","La sesion sigue abierta")
Пример #32
0
def monova0_bum(params):
    plugintools.log('[%s %s] [BUM+] Monova... %s' %
                    (addonName, addonVersion, repr(params)))

    thumbnail = 'http://upload.wikimedia.org/wikipedia/en/f/f4/Monova.jpg'
    fanart = 'http://www.gadgethelpline.com/wp-content/uploads/2013/10/Digital-Piracy.png'
    show = 'list'
    plugintools.modo_vista(show)

    try:
        texto = ""
        texto = 'the strain spanish'
        texto = plugintools.keyboard_input(texto)
        plugintools.set_setting("alluc_search", texto)
        params["plot"] = texto
        texto = texto.lower()
        if texto == "":
            errormsg = plugintools.message(
                "Arena+", "Por favor, introduzca el término a buscar")
            #return errormsg
        else:
            texto = texto.lower().strip()
            texto = texto.replace(" ", "+")

            # https://isohunt.to/torrents/?ihq=the+strain+spanish
            url = 'https://www.monova.org/search.php?sort=5&term=' + texto + '&verified=1'
            params["url"] = url
            url = params.get("url")
            referer = 'https://monova.org'
            monova1_bum(params)
    except:
        pass
Пример #33
0
def bitsnoop0(params):
    plugintools.log("[movie.ultra.7k 0.3.0].BitSnoop" + repr(params))

    try:
        texto = ""
        texto = 'riddick'
        texto = plugintools.keyboard_input(texto)
        plugintools.set_setting("alluc_search", texto)
        params["plot"] = texto
        texto = texto.lower()
        if texto == "":
            errormsg = plugintools.message(
                "Movie Ultra 7K", "Por favor, introduzca el canal a buscar")
            #return errormsg
        else:
            texto = texto.lower().strip()
            texto = texto.replace(" ", "+")

            # http://bitsnoop.com/search/all/the+strain+spanish/c/d/1/
            url = 'http://bitsnoop.com/search/all/' + texto + '/c/d/1/'
            params["url"] = url
            url = params.get("url")
            referer = 'http://www.bitsnoop.com'
            bitsnoop1(params)
    except:
        pass
Пример #34
0
def url_tester(params):
    url_test = plugintools.keyboard_input("", "Probar URL!")
    params["plot"] = url_test
    url_test = url_test.lower()
    if url_test == "":
        errormsg = plugintools.message(
            "Arena+", "Por favor, introduzca el canal a buscar")
    else:
        plugintools.log('[%s %s] Probando URL... %s' %
                        (addonName, addonVersion, url_test))
        url_test = url_test.strip()
        params["url"] = url_test
        title = multiparse_title('URL Tester', url_test, 'list')
        params["title"] = title
        if url_test.startswith("rtmp") == True:
            server_rtmp(params)
            print params
            plugintools.add_item(action="launch_rtmp",
                                 title=title + ' [I][COLOR lightyellow][' +
                                 params.get("server") + '][/I][/COLOR]',
                                 url=url_test,
                                 folder=False,
                                 isPlayable=True)
        else:
            plugintools.add_item(action="launch_rtmp",
                                 title=title,
                                 url=url_test,
                                 folder=False,
                                 isPlayable=True)
Пример #35
0
def bitsnoop0_bum(params):
    plugintools.log('[%s %s] [BUM+] BitSnoop... %s' %
                    (addonName, addonVersion, repr(params)))

    try:
        texto = ""
        texto = 'riddick'
        texto = plugintools.keyboard_input(texto)
        plugintools.set_setting("alluc_search", texto)
        params["plot"] = texto
        texto = texto.lower()
        if texto == "":
            errormsg = plugintools.message(
                "Arena+", "Por favor, introduzca el canal a buscar")
            #return errormsg
        else:
            texto = texto.lower().strip()
            texto = texto.replace(" ", "+")

            # http://bitsnoop.com/search/all/the+strain+spanish/c/d/1/
            url = 'http://bitsnoop.com/search/all/' + texto + '/c/d/1/'
            params["url"] = url
            url = params.get("url")
            referer = 'http://www.bitsnoop.com'
            bitsnoop1_bum(params)
    except:
        pass
Пример #36
0
def isohunt0_bum(params):
    plugintools.log('[%s %s] [BUM+] Isohunt... %s' %
                    (addonName, addonVersion, repr(params)))

    thumbnail = 'http://www.userlogos.org/files/logos/dfordesmond/isohunt%201.png'
    fanart = 'http://2.bp.blogspot.com/_NP40rzexJsc/TMGWrixybJI/AAAAAAAAHCU/ij1--_DQEZo/s1600/Keep_Seeding____by_Carudo.jpg'
    show = 'list'
    plugintools.modo_vista(show)

    try:
        texto = ""
        texto = 'riddick'
        texto = plugintools.keyboard_input(texto)
        plugintools.set_setting("alluc_search", texto)
        params["plot"] = texto
        texto = texto.lower()
        if texto == "":
            errormsg = plugintools.message(
                "Arena+", "Por favor, introduzca el canal a buscar")
            #return errormsg
        else:
            texto = texto.lower().strip()
            texto = texto.replace(" ", "+")

            # https://isohunt.to/torrents/?ihq=the+strain+spanish
            url = 'https://isohunt.to/torrents/?ihq=' + texto + '&Torrent_sort=seeders.desc'
            params["url"] = url
            url = params.get("url")
            referer = 'https://isohunt.to'
            isohunt1_bum(params)
    except:
        pass
Пример #37
0
def mundoplus0(params):
    plugintools.log("[Arena+ 0.3.3].Mundoplus.tv " + repr(params))
    try:
        texto = ""
        texto = 'strain'
        texto = plugintools.keyboard_input(texto)
        plugintools.set_setting("mundoplus_search", texto)
        params["plot"] = texto
        texto = texto.lower()
        if texto == "":
            errormsg = plugintools.message(
                "Arena+", "Por favor, introduzca serie a buscar")
            return errormsg
        else:
            texto = texto.lower().strip()
            texto = texto.replace(" ", "+")
            url = 'http://www.mundoplus.tv/programacion/buscador.php?canal=g_todos&fecha=TODAS&buscar=' + texto
            #url = 'http://www.alluc.com/stream/'+texto+'++lang:es'
            #url=baseurl+'stream/?q='+texto+'&stream=Streams'
            #url=baseurl+'stream/'+texto
            params["url"] = url
            url = params.get("url")
            referer = 'http://www.mundoplus.tv'
            plugintools.log("Texto a buscar: " + title)
            mundoplus1(params)

    except:
        pass
Пример #38
0
def xtv(params):
    xtvmaster = plugintools.get_setting("xtvmaster")

    if xtvmaster == 'false':
        plugintools.message("WATCH IPTV PLUS", "PRIMERO INICIA SESION")
        plugintools.open_settings_dialog()
    else:
        data = plugintools.read(url + "0")
        if "<items>" in data:
            main_list(params)
        elif "" in data:
            xbmc.executebuiltin(
                "Notification(%s,%s,%s,%s)" %
                ('WATCH IPTV PLUS', "USUARIO O CONTRASEÑA INCORRECTA......",
                 10, art + 'b.png'))
            plugintools.open_settings_dialog()
Пример #39
0
def MiamiTV_playlists(params):
    #url = plugintools.read( params.get("url") )
    url = params.get("url")

    texto = plugintools.keyboard_input("")
    num = strtoint(texto)
    if num == 9898:
        #url = 'http://usaserver.miamitvchannel.com/miamitv/smil:miamitv/chunklist_w1612796246_b2592000.m3u8'
        plugintools.play_resolved_url(url)
    else:
        #line1 = T_PSWD
        #time = 5000 #in miliseconds
        #xbmc.executebuiltin('Notification(%s, %s, %d, %s)'%(__addonname__,line1, time, __icon__))
        cap1 = plugintools.get_localized_string(50001)
        cap2 = plugintools.get_localized_string(50004)  # wrong password
        plugintools.message(cap1, cap2)
        return False
Пример #40
0
def main_list(params):
    plugintools.log("ruyaiptv.main_list "+repr(params))

    if plugintools.get_setting("username")=="":
        settings(params)

    token = api.login( plugintools.get_setting("server") , plugintools.get_setting("username") , plugintools.get_setting("password") )

    if token!="":
        plugintools.set_setting("token",token)
        import os
        plugintools.add_item( action="movies",   title="Movies" , thumbnail = os.path.join(THUMBNAIL_PATH,"thumb0.png") , fanart=os.path.join(THUMBNAIL_PATH,"fanart0.jpg") , folder=True )
        plugintools.add_item( action="tvshows",  title="TV Shows" , thumbnail = os.path.join(THUMBNAIL_PATH,"thumb1.png") , fanart=os.path.join(THUMBNAIL_PATH,"fanart1.jpg") , folder=True )
        plugintools.add_item( action="livetv",   title="Live TV" , thumbnail = os.path.join(THUMBNAIL_PATH,"thumb2.png") , fanart=os.path.join(THUMBNAIL_PATH,"fanart2.jpg") , folder=True )
        plugintools.add_item( action="livetv_catchup",   title="Catch-up TV" , thumbnail = os.path.join(THUMBNAIL_PATH,"thumb2.png") , fanart=os.path.join(THUMBNAIL_PATH,"fanart2.jpg") , folder=True )
    else:
        plugintools.message("RuYa IPTV","Invalid login, check your account in add-on settings")

    import os
    plugintools.add_item( action="settings", title="Settings..." , thumbnail = os.path.join(THUMBNAIL_PATH,"thumb3.png") , fanart=os.path.join(THUMBNAIL_PATH,"fanart3.jpg") , folder=False )

    if plugintools.get_setting("force_advancedsettings")=="true":
        # Ruta del advancedsettings
        import xbmc,xbmcgui,os
        advancedsettings = xbmc.translatePath("special://userdata/advancedsettings.xml")

        if not os.path.exists(advancedsettings):
            # Copia el advancedsettings.xml desde el directorio resources al userdata
            fichero = open( os.path.join(plugintools.get_runtime_path(),"resources","advancedsettings.xml") )
            texto = fichero.read()
            fichero.close()
            
            fichero = open(advancedsettings,"w")
            fichero.write(texto)
            fichero.close()

            plugintools.message("plugin", "A new file userdata/advancedsettings.xml","has been created for optimal streaming")

    if token!="" and plugintools.get_setting("check_for_updates")=="true":
        import updater
        updater.check_for_updates()

    plugintools.set_view( plugintools.LIST )
Пример #41
0
def settings(params):
    plugintools.log("movie4k.settings "+repr(params))

    plugintools.open_settings_dialog()

    if plugintools.get_setting("force_advancedsettings")=="true":
        # advancedsettings.xml path
        advancedsettings = xbmc.translatePath("special://userdata/advancedsettings.xml")

        if not os.path.exists(advancedsettings):
            # copy advancedsettings.xml from resources to userdata
            fichero = open( os.path.join(plugintools.get_runtime_path(),"resources","advancedsettings.xml") )
            text = fichero.read()
            fichero.close()

            fichero = open(advancedsettings,"w")
            fichero.write(text)
            fichero.close()

            plugintools.message(MYNAME, "A new file userdata/advancedsettings.xml","has been created for optimal streaming")
Пример #42
0
def oo0OooOOo0(params):
    plugintools.log(pnimi + I1IiI("VFYgU2hvd3M=") + repr(params))
    o0OOoo0OO0OOO = params.get(O0O("dXJs"))
    ##TODO ADD
    IiIiIi = urllib2.Request(o0OOoo0OO0OOO,
                             headers={"Accept": "application/xml"})
    II = urllib2.urlopen(IiIiIi)
    iI = ElementTree.parse(II)
    iI11iiiI1II = iI.getroot()
    o0OO00oO = 0
    for O0oooo0Oo00 in iI.findall(o0OOO("Y2hhbm5lbA==")):
        Ii1iIIIi1ii = O0oooo0Oo00.find(O0O("dGl0bGU=")).text
        if Ii1iIIIi1ii == "YmFja2dyb3VuZC5qcGc=":
            o0OO00oO = 1
            global tvkategoorialink
            tvkategoorialink = O0oooo0Oo00.find(I1IiI("cGxheWxpc3RfdXJs")).text
            I11i1I1I(params)
            if 83 - 83: I111i1i1111i / OOoooooO
    if o0OO00oO == 0:
        plugintools.message(pnimi, "There are no TV series available")
        if 49 - 49: Ooo0
Пример #43
0
def main_list(params): # Main menu
    plugintools.log("freshstart.main_list "+repr(params)); yes_pressed=plugintools.message_yes_no(AddonTitle,"Voce deseja restaurar o seu","Kodi para as configuracoes padrao")
    if yes_pressed:
        addonPath=xbmcaddon.Addon(id=AddonID).getAddonInfo('path'); addonPath=xbmc.translatePath(addonPath); 
        xbmcPath=os.path.join(addonPath,"..",".."); xbmcPath=os.path.abspath(xbmcPath); plugintools.log("freshstart.main_list xbmcPath="+xbmcPath); failed=False
        try:
            for root, dirs, files in os.walk(xbmcPath,topdown=False):
                for name in files:
                    try: os.remove(os.path.join(root,name))
                    except:
                        if name not in ["Addons15.db","MyVideos75.db","Textures13.db","xbmc.log"]: failed=True
                        plugintools.log("Error removing "+root+" "+name)
                for name in dirs:
                    try: os.rmdir(os.path.join(root,name))
                    except:
                        if name not in ["Database","userdata"]: failed=True
                        plugintools.log("Error removing "+root+" "+name)
            if not failed: plugintools.log("freshstart.main_list Todos os arquivos do usuario removido, agora voce tem uma instalacao limpa"); plugintools.message(AddonTitle,"Processo esta concluido, voce esta agora de volta para uma configuracao do Kodi limpa!","Por favor, reinicie o sistema ou reiniciar Kodi para que as alteracoes sejam aplicadas.")
            else: plugintools.log("freshstart.main_list Arquivos do usuario parcialmente removida"); plugintools.message(AddonTitle,"Processo esta concluido, voce esta agora de volta para uma configuracao do Kodi limpa!","Por favor, reinicie o sistema ou reiniciar Kodi para que as alteracoes sejam aplicadas.")
        except: plugintools.message(AddonTitle,"Problema encontrado","As suas definicoes nao foram alteradas"); import traceback; plugintools.log(traceback.format_exc()); plugintools.log("freshstart.main_list NOT removed")
        plugintools.add_item(action="",title="Done",folder=False)
    else: plugintools.message(AddonTitle,"As definicoes","nao foram alteradas"); plugintools.add_item(action="",title="Feito",folder=False)
Пример #44
0
def freshstart(params):
    plugintools.log("freshstart.main_list "+repr(params)); yes_pressed=plugintools.message_yes_no(AddonTitle,"Do You Wish To Wipe Your","Curreny Kodi Configuration?")
    if yes_pressed:
        addonPath=xbmcaddon.Addon(id=AddonID).getAddonInfo('path'); addonPath=xbmc.translatePath(addonPath); 
        xbmcPath=os.path.join(addonPath,"..",".."); xbmcPath=os.path.abspath(xbmcPath); plugintools.log("freshstart.main_list xbmcPath="+xbmcPath); failed=False
        try:
            for root, dirs, files in os.walk(xbmcPath,topdown=True):
                dirs[:] = [d for d in dirs if d not in EXCLUDES]
                for name in files:
                    try: os.remove(os.path.join(root,name))
                    except:
                        if name not in ["Addons15.db","MyVideos75.db","Textures13.db","xbmc.log"]: failed=True
                        plugintools.log("Error Removing "+root+" "+name)
                for name in dirs:
                    try: os.rmdir(os.path.join(root,name))
                    except:
                        if name not in ["Database","userdata"]: failed=True
                        plugintools.log("Error Removing "+root+" "+name)
            if not failed: plugintools.log("freshstart.main_list All User Files Removed, You Now Have A Clean Install"); plugintools.message(AddonTitle,"The Process Is Complete, Kodi is now clean Project X Wizard ready to install new goodies","Please Exit And Reboot Your System In Order For The Changes To Be Applied.")
            else: plugintools.log("freshstart.main_list User files partially removed"); plugintools.message(AddonTitle,"The Process Is Complete, Kodi is now clean Project X Wizard ready to install new goodies","Please Exit And Reboot Your System In Order For The Changes To Be Applied.")
        except: plugintools.message(AddonTitle,"Problem found","Your settings has not been changed"); import traceback; plugintools.log(traceback.format_exc()); plugintools.log("freshstart.main_list NOT Removed")
        plugintools.add_item(action="",title="Now Exit And Reboot Your System",folder=False)
    else: plugintools.message(AddonTitle,"Your Settings","Have Not Been Changed"); plugintools.add_item(action="",title="Done",folder=False)
Пример #45
0
def FRESHSTART(params):
    plugintools.log("freshstart.main_list "+repr(params)); yes_pressed=plugintools.message_yes_no("[COLOR red][B][I]KOBRA[/I][/B][/COLOR][COLOR grey] [B]FRESH START[/B][/COLOR]","DO YOU WISH TO RESTORE YOUR KODI-SPMC CONFIGURATION TO DEFAULT SETTINGS? [COLOR red][B]WARNING [/B][/COLOR]ALL YOUR DATA WILL BE LOST AND NOT RECOVERABLE. [COLOR red][B]PROCEED?[/B][/COLOR]")
    if yes_pressed:
        addonPath=xbmcaddon.Addon(id=AddonID).getAddonInfo('path'); addonPath=xbmc.translatePath(addonPath);
        xbmcPath=os.path.join(addonPath,"..",".."); xbmcPath=os.path.abspath(xbmcPath); plugintools.log("freshstart.main_list xbmcPath="+xbmcPath); failed=False
        try:
            for root, dirs, files in os.walk(xbmcPath,topdown=True):
                dirs[:] = [d for d in dirs if d not in EXCLUDES]
                for name in files:
                    try: os.remove(os.path.join(root,name))
                    except:
                        if name not in ["Addons15.db","MyVideos75.db","Textures13.db","xbmc.log"]: failed=True
                        plugintools.log("Error removing "+root+" "+name)
                for name in dirs:
                    try: os.rmdir(os.path.join(root,name))
                    except:
                        if name not in ["Database","userdata"]: failed=True
                        plugintools.log("Error removing "+root+" "+name)
            if not failed: plugintools.log("freshstart.main_list All user files removed, you now have a clean install"); plugintools.message(AddonTitle,"The process is complete, you're now back to a fresh Kodi-SPMC configuration with Kobra Wizard!","Please reboot your system or restart Kodi-SPMC in order for the changes to be applied.")
            else: plugintools.log("freshstart.main_list User files partially removed"); plugintools.message("[COLOR grey2][B]FRESH START[/B][/COLOR]","THE PROCESS IS COMPLETE, YOU ARE NOW BACK TO A FRESH KODI-SPMC CONFIGURATION.","PLEASE REBOOT YOUR SYSTEM OR RESTART KODI-SPMC FOR THE CHANGES TO BE APPLIED.")
        except: plugintools.message(AddonTitle,"Problem found","Your settings has not been changed"); import traceback; plugintools.log(traceback.format_exc()); plugintools.log("freshstart.main_list NOT removed")
        plugintools.add_item(action="",title="Now Exit Kodi",folder=False)
    else: plugintools.message("[COLOR red][B][I]KOBRA[/I][/B][/COLOR][COLOR grey] [B]FRESH START[/B][/COLOR]","YOUR SETTINGS HAVE NOT BEEN CHANGED."); plugintools.add_item(action="",title="DONE",folder=False)
Пример #46
0
def BUILDMENU_BETA():
 
	key = base64.b64encode(plugintools.get_setting("beta"))

	link = Common.OPEN_URL(BetaKeys).replace('\n','').replace('\r','')
	match = re.compile('passkey="(.+?)"').findall(link)
	for passkey in match:
		if key==passkey:
			link = Common.OPEN_URL(BetaWiz).replace('\n','').replace('\r','')
			match = re.compile('name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?ersion="(.+?)"').findall(link)
			for name,url,iconimage,fanart,description in match:
				Common.addDir(name,url,90,ART+name+'.png',ART+name+'.png',description)
		else:
			link = Common.OPEN_URL(BetaVIP).replace('\n','').replace('\r','')
			match = re.compile('passkey="(.+?)"').findall(link)
			for passkey in match:
				if key==passkey:
					link = Common.OPEN_URL(BetaVIPWiz).replace('\n','').replace('\r','')
					match = re.compile('name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?ersion="(.+?)"').findall(link)
					for name,url,iconimage,fanart,description in match:
						Common.addDir(name,url,90,ART+name+'.png',ART+name+'.png',description)
				else:	
					plugintools.message(AddonTitle,"Invalid Key: Check Details","[COLOR yellow]http://www.imperiotuga.comxa.com[/COLOR]")  
Пример #47
0
def FRESHSTART(params):
    plugintools.log("freshstart.main_list "+repr(params)); yes_pressed=plugintools.message_yes_no(AddonTitle,"Reset WOZBOX to default settings?","PLEASE NOTE: After reboot please re-install the Plus Pack via the WOZBOX Wizard.")
    if yes_pressed:
        addonPath=xbmcaddon.Addon(id=AddonID).getAddonInfo('path'); addonPath=xbmc.translatePath(addonPath); 
        xbmcPath=os.path.join(addonPath,"..",".."); xbmcPath=os.path.abspath(xbmcPath); plugintools.log("freshstart.main_list xbmcPath="+xbmcPath); failed=False
        try:
            for root, dirs, files in os.walk(xbmcPath,topdown=True):
                dirs[:] = [d for d in dirs if d not in EXCLUDES]
                for name in files:
                    try: os.remove(os.path.join(root,name))
                    except:
                        if name not in ["Addons15.db","MyVideos75.db","xbmc.log"]: failed=True
                        plugintools.log("Error removing "+root+" "+name)
                for name in dirs:
                    try: os.rmdir(os.path.join(root,name))
                    except:
                        if name not in ["Database","userdata"]: failed=True
                        plugintools.log("Error removing "+root+" "+name)
            if not failed: plugintools.log("freshstart.main_list All user files removed, you now have a clean install"); plugintools.message(AddonTitle,"Reset complete!","Please reboot your WOZBOX in order for the changes to be applied. On restart please re-install the WOZBOX Plus Pack via the WOZBOX Wizard.")
            else: plugintools.log("freshstart.main_list User files partially removed"); plugintools.message(AddonTitle,"Reset complete!","Please reboot your WOZBOX in order for the changes to be applied. On restart please re-install the WOZBOX Plus Pack via the WOZBOX Wizard.")
        except: plugintools.message(AddonTitle,"Problem found","Your settings has not been changed"); import traceback; plugintools.log(traceback.format_exc()); plugintools.log("freshstart.main_list NOT removed")
        plugintools.add_item(action="",title="Now Exit WOZBOX",folder=False)
    else: plugintools.message(AddonTitle,"Your WOZBOX has not been changed."); plugintools.add_item(action="",title="Done",folder=False)
Пример #48
0
def FRESHSTART(params):
    plugintools.log("freshstart.main_list "+repr(params)); yes_pressed=plugintools.message_yes_no(AddonTitle,"Do you wish to restore your","Kodi configuration to default settings?")
    if yes_pressed:
        addonPath=xbmcaddon.Addon(id=AddonID).getAddonInfo('path'); addonPath=xbmc.translatePath(addonPath); 
        xbmcPath=os.path.join(addonPath,"..",".."); xbmcPath=os.path.abspath(xbmcPath); plugintools.log("freshstart.main_list xbmcPath="+xbmcPath); failed=False
        try:
            for root, dirs, files in os.walk(xbmcPath,topdown=True):
                dirs[:] = [d for d in dirs if d not in EXCLUDES]
                for name in files:
                    try: os.remove(os.path.join(root,name))
                    except:
                        if name not in ["Addons15.db","MyVideos75.db","Textures13.db","xbmc.log"]: failed=True
                        plugintools.log("Error removing "+root+" "+name)
                for name in dirs:
                    try: os.rmdir(os.path.join(root,name))
                    except:
                        if name not in ["Database","userdata"]: failed=True
                        plugintools.log("Error removing "+root+" "+name)
            if not failed: plugintools.log("freshstart.main_list All user files removed, you now have a clean install"); plugintools.message(AddonTitle,"The process is complete, you're now back to a fresh Kodi configuration with TB BUILD Wizard!","Please reboot your system or restart Kodi in order for the changes to be applied.")
            else: plugintools.log("freshstart.main_list User files partially removed"); plugintools.message(AddonTitle,"The process is complete, you're now back to a fresh Kodi configuration with TB BUILD Wizard","Please reboot your system or restart Kodi in order for the changes to be applied.")
        except: plugintools.message(AddonTitle,"Problem found","Your settings has not been changed"); import traceback; plugintools.log(traceback.format_exc()); plugintools.log("freshstart.main_list NOT removed")
        plugintools.add_item(action="",title="Now Exit Kodi",folder=False)
    else: plugintools.message(AddonTitle,"Your settings","has not been changed"); plugintools.add_item(action="",title="Done",folder=False)
Пример #49
0
def bum_multiparser(params):
    plugintools.log('[%s %s] Iniciando BUM+ ... %s' %
                    (addonName, addonVersion, repr(params)))

    show = 'list'
    plugintools.modo_vista(show)

    try:
        texto = params.get("title")
        texto = texto.replace("[Multiparser]", "").replace(
            "[/COLOR]", "").replace("[I]", "").replace("[/I]", "").replace(
                "[COLOR white]", "").replace("[COLOR lightyellow]",
                                             "").strip()
        texto = texto + ' spanish'
        plugintools.set_setting("bum_search", texto)
        params["plot"] = texto
        texto = texto.lower().strip()
        texto = texto.replace("á", "a").replace("é", "e").replace(
            "í", "i").replace("ó",
                              "o").replace("ú",
                                           "u").replace("ñ",
                                                        "n").replace(" ", "+")
        if texto == "":
            errormsg = plugintools.message(
                "Arena+", "Por favor, introduzca el canal a buscar")
            #return errormsg
        else:
            url = 'https://kickass.to/usearch/' + texto + '/'  # Kickass
            params["url"] = url
            url = params.get("url")
            referer = 'http://www.kickass.to'
            kickass1_bum(params)
            url = 'http://bitsnoop.com/search/all/' + texto + '/c/d/1/'  # BitSnoop
            params["url"] = url
            url = params.get("url")
            referer = 'http://www.bitsnoop.com'
            bitsnoop1_bum(params)
            url = 'https://isohunt.to/torrents/?ihq=' + texto + '&Torrent_sort=seeders.desc'  # Isohunt
            params["url"] = url
            url = params.get("url")
            referer = 'https://isohunt.to'
            isohunt1_bum(params)
            url = 'https://www.monova.org/search.php?sort=5&term=' + texto + '&verified=1'  # Monova
            params["url"] = url
            url = params.get("url")
            referer = 'https://monova.org'
            monova1_bum(params)

    except:
        pass
Пример #50
0
def FRESHSTART(params):
    plugintools.log("freshstart.main_list "+repr(params)); yes_pressed=plugintools.message_yes_no(AddonTitle,"Wil je de standaard instellingen terug zetten van je Kodi installatie?")
    if yes_pressed:
        addonPath=xbmcaddon.Addon(id=AddonID).getAddonInfo('path'); addonPath=xbmc.translatePath(addonPath); 
        xbmcPath=os.path.join(addonPath,"..",".."); xbmcPath=os.path.abspath(xbmcPath); plugintools.log("freshstart.main_list xbmcPath="+xbmcPath); failed=False
        try:
            for root, dirs, files in os.walk(xbmcPath,topdown=True):
                dirs[:] = [d for d in dirs if d not in EXCLUDES]
                for name in files:
                    try: os.remove(os.path.join(root,name))
                    except:
                        if name not in ["Addons15.db","MyVideos75.db","Textures13.db","xbmc.log"]: failed=True
                        plugintools.log("Error removing "+root+" "+name)
                for name in dirs:
                    try: os.rmdir(os.path.join(root,name))
                    except:
                        if name not in ["Database","userdata"]: failed=True
                        plugintools.log("Error removing "+root+" "+name)
            if not failed: plugintools.log("freshstart.main_list All user files removed, you now have a clean install"); plugintools.message(AddonTitle,"Schone Installatie is klaar, je hebt nu een verse Kodi configuratie met DSS Install. Herstart nu je box!")
            else: plugintools.log("freshstart.main_list User files partially removed"); plugintools.message(AddonTitle,"Schone Installatie is klaar, je hebt nu een verse Kodi configuratie met DSS Install. Herstart nu je box!")
        except: plugintools.message(AddonTitle,"Problem found","Your settings has not been changed"); import traceback; plugintools.log(traceback.format_exc()); plugintools.log("freshstart.main_list NOT removed")
        plugintools.add_item(action="",title="Kodi Sluiten",folder=False)
    else: plugintools.message(AddonTitle,"Er is geen schone installatie gedaan."); plugintools.add_item(action="",title="Klaar",folder=False)
Пример #51
0
def ivoox_search(params):
    texto = ""
    texto = plugintools.keyboard_input(texto)
    texto = texto.lower()
    if texto == "":
        errormsg = plugintools.message(
            "PalcoTV", "Por favor, introduzca el término de búsqueda")
    else:
        texto = texto.lower()
        texto_a = texto.replace(" ", "+").strip()
        texto_b = texto.replace(" ", "-").strip()
        url = 'http://www.ivoox.com/' + texto_a + '_sb.html?sb=' + texto_b
        params["url"] = url
        Secciones_Ivoox(params)
Пример #52
0
def main_list(params):
    plugintools.log("freshstart.main_list "+repr(params))

    yes_pressed = plugintools.message_yes_no("XBMC Fresh Start", "Do you wish to restore your", "XBMC configuration to default settings?")

    if yes_pressed:
        addonPath = xbmcaddon.Addon(id = 'plugin.video.freshstart').getAddonInfo('path')
        addonPath = xbmc.translatePath( addonPath )
        xbmcPath = os.path.join(addonPath,"..","..")
        xbmcPath = os.path.abspath(xbmcPath)
        plugintools.log("freshstart.main_list xbmcPath="+xbmcPath)
        failed=False

        try:
            for root, dirs, files in os.walk(xbmcPath, topdown=False):
                for name in files:
                    try:
                        os.remove(os.path.join(root, name))
                    except:
                        if name not in ["Addons15.db","MyVideos75.db","Textures13.db","xbmc.log"]:
                            failed=True
                        plugintools.log("Error removing "+root+" "+name)

                for name in dirs:
                    try:
                        os.rmdir(os.path.join(root, name))
                    except:
                        if name not in ["Database","userdata"]:
                            failed=True
                        plugintools.log("Error removing "+root+" "+name)

            if not failed:
                plugintools.log("freshstart.main_list All user files removed, you now have a clean install")
                plugintools.message("XBMC Fresh Start", "The process is complete, you're now back to a fresh XBMC configuration!","Please reboot your system or restart XBMC in order for the changes to be applied.")
            else:
                plugintools.log("freshstart.main_list User files partially removed")
                plugintools.message("XBMC Fresh Start", "The process is finished, you're now back to a fresh XBMC configuration!","Please reboot your system or restart XBMC in order for the changes to be applied.")
        except:
            plugintools.message("XBMC Fresh Start", "Problem found","Your settings has not been changed")
            import traceback
            plugintools.log(traceback.format_exc())
            plugintools.log("freshstart.main_list NOT removed")

        plugintools.add_item( action="" , title="Done" , folder=False )
    else:
        plugintools.message("XBMC Fresh Start", "Your settings", "has not been changed")
        plugintools.add_item( action="" , title="Done" , folder=False )
Пример #53
0
def main_list(params):
    plugintools.log("dandb.main_list "+repr(params))

    if plugintools.get_setting("user")=="":
        settings(params)

    token = api.users_login( plugintools.get_setting("user") , plugintools.get_setting("password") )

    if token!="":
        plugintools.set_setting("token",token)
        import os
        itemlist = api.navigation_get_all("mainlist",0,1000)
        add_items_to_xbmc(params,itemlist)
    else:
        plugintools.message("D&B TV","Invalid login, check your account in add-on settings")

    import os
    plugintools.add_item( action="settings", title="Settings..." , folder=False )

    if token!="" and plugintools.get_setting("check_for_updates")=="true":
        import updater
        updater.check_for_updates()

    plugintools.set_view( plugintools.LIST )
Пример #54
0
def main_list(params):
    plugintools.log("clean.main_list "+repr(params))

    yes_pressed = plugintools.message_yes_no("Supabox Fresh clean", "Do you wish to restore your", "Supabox configuration to default settings?")

    if yes_pressed:
        addonPath = xbmcaddon.Addon(id = 'plugin.video.supaboxclean').getAddonInfo('path')
        addonPath = xbmc.translatePath( addonPath )
        xbmcPath = os.path.join(addonPath,"..","..","userdata","Thumbnails")
        xbmcPath = os.path.abspath(xbmcPath)
        
        addonPath1 = xbmcaddon.Addon(id = 'plugin.video.supaboxclean').getAddonInfo('path')
        addonPath1 = xbmc.translatePath( addonPath1 )
        xbmcPath1 = os.path.join(addonPath1,"..","..","addons","packages")
        xbmcPath1 = os.path.abspath(xbmcPath1)

        plugintools.log("clean.main_list xbmcPath="+xbmcPath)
        failed=False
        
        try:
            row=texturecache.main("Xd")
            row=texturecache.main("P")
        finally:
            plugintools.log("texturecache failed ")
            pass

        plugintools.log("Error removing: "+xbmcPath1)
        try:
            for root, dirs, files in os.walk(xbmcPath1, topdown=False):
                for name in files:
                    try:
                        os.remove(os.path.join(root, name))
                    except:
                        failed=True
                        plugintools.log("Error removing "+root+" "+name)

                for name in dirs:
                    try:
                        os.rmdir(os.path.join(root, name))
                    except:
                        plugintools.log("Error removing "+root+" "+name)

            if not failed:
                plugintools.log("clean.main_list All cache files removed, you now have more space.")
                plugintools.message("Supabox Fresh Clean", "Cleaned System!")
            else:
                plugintools.log("clean.main_list addon packages partially removed")
                plugintools.message("Supabox Fresh Clean", "Failed to clean system!")
        except:
            plugintools.log("clean.main_list NOT removed")

        plugintools.add_item( action="" , title="Done" , folder=False )
    else:
        plugintools.message("Supabox Fresh Clean", "Your settings", "has not been changed")
        plugintools.add_item( action="" , title="Done" , folder=False )
Пример #55
0
def url_tester(params):
    url_test = plugintools.keyboard_input("", "Probar URL!")
    params["plot"]=url_test
    url_test = url_test.lower()
    if url_test == "":
        errormsg = plugintools.message("Arena+","Por favor, introduzca el canal a buscar")        
    else:
        plugintools.log('[%s %s] Probando URL... %s' % (addonName, addonVersion, url_test))
        url_test = url_test.strip()
        params["url"]=url_test
        title = multiparse_title('URL Tester', url_test, 'list')
        params["title"]=title
        if url_test.startswith("rtmp") == True:
            server_rtmp(params)
            print params
            plugintools.add_item(action="launch_rtmp", title=title+' [I][COLOR lightyellow]['+params.get("server")+'][/I][/COLOR]', url=url_test, folder=False, isPlayable=True)
        else:
            plugintools.add_item(action="launch_rtmp", title=title, url=url_test, folder=False, isPlayable=True)
Пример #56
0
def bum_multiparser(params):
    plugintools.log('[%s %s] Iniciando BUM+ ... %s' % (addonName, addonVersion, repr(params)))

    show = 'list'
    plugintools.modo_vista(show)    

    try:
        texto = params.get("title")
        texto = texto.replace("[Multiparser]", "").replace("[/COLOR]", "").replace("[I]", "").replace("[/I]", "").replace("[COLOR white]", "").replace("[COLOR lightyellow]", "").strip()
        texto = texto+' spanish'
        plugintools.set_setting("bum_search",texto)
        params["plot"]=texto
        texto = texto.lower().strip()
        texto = texto.replace("á", "a").replace("é", "e").replace("í", "i").replace("ó", "o").replace("ú", "u").replace("ñ", "n").replace(" ", "+")
        if texto == "":
            errormsg = plugintools.message("Arena+","Por favor, introduzca el canal a buscar")
            #return errormsg
        else:
            url = 'https://kickass.to/usearch/'+texto+'/'  # Kickass
            params["url"]=url            
            url = params.get("url")
            referer = 'http://www.kickass.to'
            kickass1_bum(params)
            url = 'http://bitsnoop.com/search/all/'+texto+'/c/d/1/'  # BitSnoop
            params["url"]=url            
            url = params.get("url")
            referer = 'http://www.bitsnoop.com'
            bitsnoop1_bum(params)
            url = 'https://isohunt.to/torrents/?ihq='+texto+'&Torrent_sort=seeders.desc'  # Isohunt
            params["url"]=url            
            url = params.get("url")
            referer = 'https://isohunt.to'
            isohunt1_bum(params)
            url = 'https://www.monova.org/search.php?sort=5&term='+texto+'&verified=1'  # Monova
            params["url"]=url            
            url = params.get("url")
            referer = 'https://monova.org'
            monova1_bum(params) 

    except:
         pass  
Пример #57
0
def mundoplus0(params):
    
    try:
        texto = "";
        texto='strain'
        texto = plugintools.keyboard_input(texto)
        plugintools.set_setting("mundoplus_search",texto)
        params["plot"]=texto
        texto = texto.lower()        
        if texto == "": errormsg = plugintools.message("PalcoTV","Por favor, introduzca serie a buscar");return errormsg
        else:
            texto = texto.lower().strip()
            texto = texto.replace(" ", "+")
            url = 'http://www.mundoplus.tv/programacion/buscador.php?canal=g_todos&fecha=TODAS&buscar='+texto
            #url = 'http://www.alluc.com/stream/'+texto+'++lang:es'
            #url=baseurl+'stream/?q='+texto+'&stream=Streams'
            #url=baseurl+'stream/'+texto
            params["url"]=url
            url = params.get("url")
            referer = 'http://www.mundoplus.tv'
            plugintools.log("Texto a buscar: "+title)
            mundoplus1(params)

    except: pass