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)')
elif mode == 32: xnxx.SEARCH(url) elif mode == 33: xnxx.PLAY_URL(name, url, iconimage) elif mode == 34: xnxx.PICTURE_MENU() elif mode == 35: xnxx.PICTURE_CONTENT(url) elif mode == 36: xnxx.SCRAPE_GALLERY(url) elif mode == 37: xnxx.DISPLAY_PICTURE(url) elif mode == 38: xnxx.STORY_MENU() elif mode == 39: xnxx.LIST_STORIES(url) elif mode == 40: xnxx.DISPLAY_STORY(url) elif mode == 41: redtube.MAIN_MENU() elif mode == 42: redtube.GET_CONTENT(url) elif mode == 43: redtube.SEARCH(url) elif mode == 44: redtube.PLAY_URL(name, url, iconimage) elif mode == 45: redtube.SEARCH_DECIDE() elif mode == 50: pornhd.MAIN_MENU() elif mode == 51: pornhd.GET_CONTENT(url) elif mode == 52: pornhd.SEARCH(url) elif mode == 53: pornhd.PLAY_URL(name, url, iconimage) elif mode == 54: pornhd.SEARCH_DECIDE() elif mode == 60: porncom.MAIN_MENU() elif mode == 61: porncom.GET_CONTENT(url) elif mode == 62: porncom.SEARCH(url) elif mode == 63: porncom.PLAY_URL(name, url, iconimage) elif mode == 64: porncom.SEARCH_DECIDE() elif mode == 70: youporn.MAIN_MENU() elif mode == 71: youporn.GET_CONTENT(url) elif mode == 72: youporn.SEARCH(url) elif mode == 73: youporn.PLAY_URL(name, url, iconimage) elif mode == 74: youporn.SEARCH_DECIDE() elif mode == 80: pornfun.MAIN_MENU() elif mode == 81: pornfun.GET_CONTENT(url)