Exemplo n.º 1
0
def SEARCH_HOME(url):

    term = url
    total = 18
    i = 0
    if term == "null":
        string = ''
        keyboard = xbmc.Keyboard(string, 'Enter Search Term')
        keyboard.doModal()
        if keyboard.isConfirmed():
            entry = keyboard.getText()
            term = entry
            string = entry.replace(' ', '+')
            if not len(string) > 1:
                quit()
        else:
            quit()
    else:
        string = term.replace(' ', '+')

    search_on_off = plugintools.get_setting("search_setting")
    if search_on_off == "true":
        a = open(SEARCH_FILE).read()
        b = a.replace(
            '#START OF FILE#', '#START OF FILE#\n<item>\n<term>' + str(term) +
            '</term>\n</item>\n')
        f = open(SEARCH_FILE, mode='w')
        f.write(str(b))

    try:
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.create(
            AddonTitle,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]YouPorn[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        url = "http://www.youporn.com/search/?query=" + string.lower()
        url = 'split|' + url
        dp.update(progress)
        try:
            youporn.GET_CONTENT(url)
        except:
            pass
        url = "http://www.xnxx.com/?k=" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]XNXX[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            xnxx.GET_CONTENT(url)
        except:
            pass
        url = "https://xhamster.com/search.php?from=&new=&q=" + string.lower(
        ) + "&qcat=video"
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]Xhamster[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            xhamster.GET_CONTENT(url)
        except:
            pass
        url = "https://www.pornhd.com/search?search=" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]PornHD[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            pornhd.GET_CONTENT(url)
        except:
            pass
        url = "https://www.p**n.com/videos/search?q=" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]P**n.com[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            porncom.GET_CONTENT(url)
        except:
            pass
        url = "https://www.redtube.com/?search=" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]RedTube[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            redtube.GET_CONTENT(url)
        except:
            pass
        url = "https://pornfun.com/search/?q=" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]PornFun[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            pornfun.GET_CONTENT(url)
        except:
            pass
        url = "http://spankbang.com/s/" + string.lower() + "/"
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]Spankbang[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            spankbang.GET_CONTENT(url)
        except:
            pass
        url = "http://www.porn00.org/?s=" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]Porn00[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            porn00.GET_CONTENT('none', url, 'none')
        except:
            pass
        url = "http://virtualpornstars.com/?s=" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]Virtual P**n Stars[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            virtualpornstars.GET_CONTENT(url)
        except:
            pass
        url = "https://watchxxxfree.com/?s=" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]Watch XXX Free[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            watchxxxfree.GET_CONTENT(url)
        except:
            pass
        string = string.replace('+', '%20')
        url = "http://www.perfectgirls.net/search/" + string.lower() + '/'
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]Perfect Girls[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            perfectgirls.GET_CONTENT(url)
        except:
            pass
        string = string.replace('+', '%20')
        url = "http://motherless.com/term/" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]Motherless[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            motherless.GET_CONTENT(url)
        except:
            pass
        string = string.replace('+', '%20')
        url = "http://justporno.tv/search?query=" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]Just Porno TV[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            justporno.GET_CONTENT(url)
        except:
            pass
        string = string.replace('+', '-')
        url = "https://www.eporner.com/search/" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]Eporner[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            eporner.GET_CONTENT(url)
        except:
            pass
        url = "http://pornxs.com/search.php?s=" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]PornXS[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            pornxs.GET_CONTENT(url)
        except:
            pass
        url = "http://www.xvideos.com/?k=" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]Xvideos[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            xvideos.GET_CONTENT(url)
        except:
            pass
        string = string.replace('+', '-')
        url = "http://www.nxgx.com/search/" + string.lower()
        url = 'split|' + url
        i = i + 1
        progress = 100 * int(i) / int(total)
        dp.update(
            progress,
            '[COLOR white]Searching: [/COLOR] [COLOR orangered]NXGX[/COLOR]',
            '[COLOR white]Term: [/COLOR][COLOR deeppink]' + term.lower() +
            '[/COLOR]', '[COLOR white]Source: [/COLOR][COLOR pink]' + str(i) +
            ' of ' + str(total) + '[/COLOR]')
        try:
            nxgx.GET_CONTENT(url)
        except:
            pass
        dp.close()
    except:
        dialog.ok(
            AddonTitle,
            '[COLOR pink]Sorry, there was an error searching for ' +
            string.lower() + ' please try again later.[/COLOR]')
        quit()

    kodi_name = common.GET_KODI_VERSION()

    if kodi_name == "Jarvis":
        xbmc.executebuiltin('Container.SetViewMode(500)')
    elif kodi_name == "Krypton":
        xbmc.executebuiltin('Container.SetViewMode(55)')
    else:
        xbmc.executebuiltin('Container.SetViewMode(500)')
Exemplo n.º 2
0
elif mode == 205:
    spankbang.SEARCH_DECIDE()
elif mode == 210:
    porn00.MAIN_MENU()
elif mode == 211:
    porn00.GET_CONTENT(name, url, iconimage)
elif mode == 212:
    porn00.SEARCH(url)
elif mode == 213:
    porn00.PLAY_URL(name, url, iconimage)
elif mode == 214:
    porn00.SEARCH_DECIDE()
elif mode == 220:
    virtualpornstars.MAIN_MENU()
elif mode == 221:
    virtualpornstars.GET_CONTENT(url)
elif mode == 222:
    virtualpornstars.SEARCH(url)
elif mode == 223:
    virtualpornstars.PLAY_URL(name, url, iconimage)
elif mode == 224:
    virtualpornstars.SEARCH_DECIDE()
elif mode == 230:
    justpornotv.MAIN_MENU()
elif mode == 231:
    justpornotv.GET_CONTENT(url)
elif mode == 232:
    justpornotv.SEARCH(url)
elif mode == 233:
    justpornotv.PLAY_URL(name, url, iconimage)
elif mode == 234: