def onClick(self, controlId):
        if controlId == 4001:
            self.close()
            request_servidores('','[B]%s[/B]' %(self.name))

        elif controlId == 40010:
            self.close()
            iniciagravador(self.finalurl,self.siglacanal,self.name,self.directo)

        elif controlId == 203:
            #xbmc.executebuiltin("XBMC.PlayerControl(stop)")
            self.close()

        elif controlId == 6000:
            listControl = self.getControl(6000)
            item = listControl.getSelectedItem()
            nomecanal=item.getProperty('chname')
            self.close()
            request_servidores('',nomecanal)
Esempio n. 2
0
    def onClick(self, controlId):
        if controlId == 4001:
            self.close()
            request_servidores('', '[B]%s[/B]' % (self.name))

        elif controlId == 40010:
            self.close()
            iniciagravador(self.finalurl, self.siglacanal, self.name,
                           self.directo)

        elif controlId == 203:
            #xbmc.executebuiltin("XBMC.PlayerControl(stop)")
            self.close()

        elif controlId == 6000:
            listControl = self.getControl(6000)
            item = listControl.getSelectedItem()
            nomecanal = item.getProperty('chname')
            self.close()
            request_servidores('', nomecanal)
if mode==1: menu_principal()
elif mode==2: replaytv()
elif mode==3: replaytv_lista(name,url)
elif mode==4: replaytv_progs(name,url)
elif mode==5: obter_lista(name,url)
elif mode==6: listascanais()
elif mode==7: descobrirresolver(url,nomecanal,linkrecebido,zapping)
elif mode==8: replaytv_play(name,url)
elif mode==9: xbmc.executebuiltin("Container.NextViewMode")
elif mode==10: replaytv_pesquisa()
elif mode==11: obter_lista(name,url)
elif mode==12: menugravador()
elif mode==13: abrir_lista_canais()
elif mode==14: ok = mensagemok('TV Portuguesa','[B][COLOR white]Queres adicionar a tua lista (XML)?[/COLOR][/B]','Visita [B]http://bit.ly/fightnightaddons[/B]','ou contacta "*****@*****.**')
elif mode==15: ok = mensagemok('TV Portuguesa','A actualizacao é automática. Caso nao actualize va ao','repositorio fightnight e prima c ou durante 2seg','e force a actualizacao. De seguida, reinicie o XBMC.')
elif mode==16: request_servidores(url,name)
elif mode==17: comecarvideo(url,name,'listas',False,thumb=thumb)
elif mode==18: entraraddon()
elif mode==19: radios()
elif mode==20: radioslocais()
elif mode==21: radiosobterurlstream(name,url)
elif mode==22: selfAddon.openSettings()
elif mode==23: mensagemaviso()
elif mode==24: listar_radios(name,url)
elif mode==25: sportsdevil()
elif mode==26: praias()
elif mode==27: _descobrirresolver(url,name,False,False,'Praias')
elif mode==28: eventosdesportivos()
elif mode==29: firstrow()
elif mode==30: request_servidores(url,name,gravador=True)
elif mode==31: programacao_canal()
elif mode == 14:
    ok = mensagemok(
        "TV Portuguesa",
        "[B][COLOR white]Queres adicionar a tua lista (XML)?[/COLOR][/B]",
        "Visita [B]http://bit.ly/fightnightaddons[/B]",
        'ou contacta "*****@*****.**',
    )
elif mode == 15:
    ok = mensagemok(
        "TV Portuguesa",
        "A actualizacao é automática. Caso nao actualize va ao",
        "repositorio fightnight e prima c ou durante 2seg",
        "e force a actualizacao. De seguida, reinicie o XBMC.",
    )
elif mode == 16:
    request_servidores(url, name)
elif mode == 17:
    comecarvideo(url, name, "listas", False, thumb=thumb)
elif mode == 18:
    entraraddon()
elif mode == 19:
    radios()
elif mode == 20:
    radioslocais()
elif mode == 21:
    radiosobterurlstream(name, url)
elif mode == 22:
    selfAddon.openSettings()
elif mode == 23:
    mensagemaviso()
elif mode == 24:
Esempio n. 5
0
if mode==1: menu_principal()
elif mode==2: replaytv()
elif mode==3: replaytv_lista(name,url)
elif mode==4: replaytv_progs(name,url)
elif mode==5: obter_lista(name,url)
elif mode==6: listascanais()
elif mode==7: descobrirresolver(url,nomecanal,linkrecebido,zapping)
elif mode==8: replaytv_play(name,url)
elif mode==9: xbmc.executebuiltin("Container.NextViewMode")
elif mode==10: replaytv_pesquisa()
elif mode==11: obter_lista(name,url)
elif mode==12: menugravador()
elif mode==13: abrir_lista_canais()
elif mode==14: ok = mensagemok('TV Portuguesa','[B][COLOR white]Queres adicionar a tua lista (XML)?[/COLOR][/B]','Visita [B]http://bit.ly/fightnightaddons[/B]','ou contacta "*****@*****.**')
elif mode==15: ok = mensagemok('TV Portuguesa','A actualizacao é automática. Caso nao actualize va ao','repositorio fightnight e prima c ou durante 2seg','e force a actualizacao. De seguida, reinicie o XBMC.')
elif mode==16: request_servidores(url,name)
elif mode==17: comecarvideo(url,name,'listas',False,thumb=thumb)
elif mode==18: entraraddon()
elif mode==19: radios()
elif mode==20: radioslocais()
elif mode==21: radiosobterurlstream(name,url)
elif mode==22: selfAddon.openSettings()
elif mode==23: mensagemaviso()
elif mode==24: listar_radios(name,url)
elif mode==25: sportsdevil()
elif mode==26: praias()
elif mode==27: _descobrirresolver(url,name,False,False,'Praias')
elif mode==28: eventosdesportivos()
elif mode==29: firstrow()
elif mode==30: request_servidores(url,name,gravador=True)
elif mode==31: programacao_canal()