Exemplo n.º 1
0
def proxpesquisa():
    from t0mm0.common.addon import Addon
    addon=Addon(addon_id)
    form_d=addon.load_data('temp.txt')
    ref_data = {'Accept':'*/*','Content-Type':'application/x-www-form-urlencoded','Host':'abelhas.pt','Origin':'http://abelhas.pt','Referer':url,'User-Agent':user_agent,'X-Requested-With':'XMLHttpRequest'}
    form_d['Page']= form_d['Page'] + 1
    endlogin=MainURL + 'action/SearchFiles/Results'
    net.set_cookies(cookies)
    conteudo= net.http_POST(endlogin,form_data=form_d,headers=ref_data).content.encode('latin-1','ignore')
    addon.save_data('temp.txt',form_d)
    pastas(MainURL + 'action/nada','coco',conteudo=conteudo)
Exemplo n.º 2
0
def Search():
    last_search = Addon.load_data('search')
    if not last_search: last_search = ''
    search_entered =''
    keyboard = xbmc.Keyboard(search_entered, '[B][I] SEARCH TV-REALEASE.NET TVShows[/B][/I]')
    last_search = last_search.replace('%20',' ')
    keyboard.setDefault(last_search)
    keyboard.doModal()
    if keyboard.isConfirmed():
        search_entered = keyboard.getText().replace(' ','%20')# sometimes you need to replace spaces with + or %20#
        Addon.save_data('search',search_entered)
    if search_entered == None or len(search_entered)<1:
        MAIN()
    else:
        url = base64.b64encode('http://www.tv-release.net/?s='+search_entered+'&cat=')
        Index(url, '')
Exemplo n.º 3
0
def SEARCH(url):
    last_search = Addon.load_data('search')
    if not last_search: last_search = ''
    search_entered =''
    keyboard = xbmc.Keyboard(search_entered, '[B][I] SEARCH TV-REALEASE.NET TVShows[/B][/I]')
    last_search = last_search.replace('+',' ')
    keyboard.setDefault(last_search)
    keyboard.doModal()
    if keyboard.isConfirmed():
        search_entered = keyboard.getText().replace(' ','+')# sometimes you need to replace spaces with + or %20#
        Addon.save_data('search',search_entered)
    if search_entered == None or len(search_entered)<1:
        MAIN()
    else:
        url = 'http://tv-release.net/?s="%s"&cat='%(search_entered)
        types = None
        SEARCHRESULTS(url,types)
Exemplo n.º 4
0
        dialog.ok("[I]TubePLUS by www.xbmchub.com[/I]", "[I][B][COLOR red]IMPORTANT[/B][/COLOR] Some of the options below could take [/I]","[I]a long time to list, Due to the amount of information[/I]","[I]that gets cached, This only happens ONCE.[/I]")
        dialog.ok("[I]TubePLUS by www.xbmchub.com[/I]", "[I]You can dissable this popup in the addon settings[/I]")

    url = 'http://www.tubeplus.me'
    html = GETHTML(url)
    AZ_DIRECTORIES = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y', 'Z']
    url = 'http://www.tubeplus.me/browse/tv-shows/All_Genres/-/'
    addDir(150,url,'None','ATOZ','','0-9','')
    for i in AZ_DIRECTORIES:
        iconimage=i
        name = i
        url = BASE_URL+'browse/tv-shows/All_Genres/%s/'%i
        addDir(150,url,'None','ATOZ','',name,'')
    
elif mode == 130:
    last_search = addon.load_data('tvsearch')
    if not last_search: last_search = ''
    search_entered =''
    keyboard = xbmc.Keyboard(search_entered, '[B][I] SEARCH TubePlus TVShows[/B][/I]')
    last_search = last_search.replace('+',' ')
    keyboard.setDefault(last_search)
    keyboard.doModal()
    if keyboard.isConfirmed():
        search_entered = keyboard.getText().replace(' ','+')# sometimes you need to replace spaces with + or %20#
        addon.save_data('tvsearch',search_entered)
    if search_entered == None or len(search_entered)<1:
        TVMENU()
    else:
        url = 'http://www.tubeplus.me/search/tv-shows/%s/'%(search_entered)
        types = 'None'
        linkback = 'latesttv'