def MAIN_MENU(): common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]", "url", 64, search_icon, fanart) result = common.open_url('http://www.p**n.com/categories') match = re.compile( '<div class="main"><h1>Featured Categories</h1>(.+?)<h2>All Categories</h2>', re.DOTALL).findall(result) string = str(match) match2 = re.compile('<a class="thum(.+?)data-id="', re.DOTALL).findall(string) for item in match2: url = re.compile('bs" href="(.+?)"').findall(item)[0] title = re.compile('title="(.+?)"').findall(item)[0] icon_cat = re.compile('<img src="(.+?)"').findall(item)[0] title = title.replace("p**n", '') name = "[COLOR white]" + title + "[/COLOR]" name = common.CLEANUP(name) url = 'http://p**n.com' + url common.addDir(name, url, 61, icon_cat, fanart) kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(50)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(55)') else: xbmc.executebuiltin('Container.SetViewMode(50)')
def MAIN_MENU(): common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]", "url", 54, search_icon, fanart) result = common.open_url('http://www.pornhd.com/category') match = re.compile( '<div class="tag-150-container">(.+?)<div class="footer-zone">', re.DOTALL).findall(result) string = str(match) match2 = re.compile('<li class="category">(.+?)</li>', re.DOTALL).findall(string) for item in match2: url = re.compile('<a href="(.+?)">').findall(item)[0] title = re.compile('alt="(.+?)"').findall(item)[0] icon_cat = re.compile('data-original="(.+?)"').findall(item)[0] name = "[COLOR white]" + title + "[/COLOR]" name = common.CLEANUP(name) url = 'http://pornhd.com' + url common.addDir(name, url, 51, icon_cat, fanart) kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(50)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(55)') else: xbmc.executebuiltin('Container.SetViewMode(50)')
def GET_CONTENT(url): nextpage = 0 try: a,url = url.split('|') except: nextpage = 1 checker = url result = common.open_url(url) match = re.compile('<li class="border-radius-5 box-shadow">(.+?)</li>',re.DOTALL).findall(result) for item in match: title=re.compile('title="(.+?)"').findall(item)[0] url=re.compile('href="(.+?)"').findall(item)[0] iconimage=re.compile('data-lazy-src="(.+?)"').findall(item)[0] try: rating=re.compile('<div class="rating-infos">(.+?)<span class="rating-img">').findall(item)[0] except: rating = "0%" url2 = title + '|SPLIT|' + url name = '[COLOR red][B]' + rating + '[/B][/COLOR] - [COLOR pink]' + title + '[/COLOR]' name = common.CLEANUP(name) common.addLink(name,url2,303,iconimage,iconimage) if nextpage == 1: try: np=re.compile('<link rel="next" href="(.+?)"/>').findall(result)[0] common.addDir('[COLOR pink]Next Page >>[/COLOR]',np,301,icon,fanart) except:pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT_PICTURES(url): checker = url result = common.open_url(url) match = re.compile('<div class="content-inner">(.+?)</html>',re.DOTALL).findall(result) string = str(match) match2 = re.compile('<div class="thumb-container(.+?)<div class="clear:both;">',re.DOTALL).findall(string) for item in match2: try: title=re.compile('<h2 class="caption title">(.+?)</h2>').findall(item)[0] url=re.compile('<a href="(.+?)"').findall(item)[0] iconimage=re.compile('<img class="static" src="(.+?)"').findall(item)[0] hits=re.compile('<div class="caption right">(.+?)</div>').findall(item)[0] date=re.compile('<div class="caption right">(.+?)</div>').findall(item)[1] title = common.CLEANUP(title) name = title + ' - ' + hits + ' | ' + date common.addLink(name,url,92,iconimage,fanart) except: pass try: next=re.compile('<a href="([^"]*)" class="pop".+?>NEXT').findall(result)[0] url = "http://motherless.com" + str(next) common.addDir('[COLOR orangered]Next Page >>[/COLOR]',url,91,icon,fanart) except:pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def LIST_STORIES(url): result = common.open_url(url) match = re.compile('<ul class="stories_list">(.+?)<div class="pager">', re.DOTALL).findall(result) string = str(match) match2 = re.compile('<h4>(.+?)</h4>', re.DOTALL).findall(string) for item in match2: title = re.compile('<a href=".+?">(.+?)</a>.+?tby').findall(item)[0] url = re.compile('<a href="(.+?)">.+?</a>.+?by').findall(item)[0] author = re.compile('by <a href=".+?">(.+?)</a>').findall(item)[0] url3 = url url4 = url3.replace('\\', '') url = "http://www.sexstories.com" + url4 title = common.CLEANUP(title) name = "[COLOR white]" + title + " by " + author + "[/COLOR]" common.addLink(name, url, 40, icon, fanart) kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(50)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(55)') else: xbmc.executebuiltin('Container.SetViewMode(50)')
def MAIN_MENU(): common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]", "url", 224, icon, fanart) result = common.open_url('http://virtualpornstars.com/') match = re.compile('<li class="cat-item cat(.+?)a>', re.DOTALL).findall(result) for item in match: try: title = re.compile('<a href=".+?" >(.+?)</').findall(item)[0] url = re.compile('<a href="(.+?)" >.+?</').findall(item)[0] name = "[COLOR white]" + title + "[/COLOR]" name = common.CLEANUP(name) common.addDir(name, url, 221, icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(50)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(55)') else: xbmc.executebuiltin('Container.SetViewMode(50)')
def GET_CONTENT(url): nextpage = 0 try: a,url = url.split('|') except: nextpage = 1 checker = url link = common.open_url(url).replace('/n','') match=re.compile('<div class="thumb-box">(.+?)</div>',re.DOTALL).findall(link)[0] match2=re.compile('<li>(.+?)</li>',re.DOTALL).findall(match) for links in match2: try: name=re.compile('<a href=".+?" title="(.+?)">',re.DOTALL).findall(links)[0] url=re.compile('<a href="(.+?)" title=".+?">',re.DOTALL).findall(links)[0] iconimage=re.compile('src="(.+?)"',re.DOTALL).findall(links)[0] url="http://justporno.tv" + url name = common.CLEANUP(name) url = name + "|SPLIT|" + url + "|SPLIT|" + iconimage common.addLink(name,url,233,iconimage,fanart) except: pass if nextpage == 1: try: np=re.compile('<link rel="next" href="(.+?)"').findall(result)[0] common.addDir('[COLOR white]Next Page >>[/COLOR]',np,231,next_icon,fanart) except:pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(url): nextpage = 0 try: a,url = url.split('|') except: nextpage = 1 link = common.open_url(url).replace('\n','').replace('\r','') match=re.compile('<div class="thumb video medium"(.+?)<div class="clear').findall(link) for links in match: url=re.compile('<a href="(.+?)"',re.DOTALL).findall(links)[0] name=re.compile('<h2 class="caption title">(.+?)</h2>',re.DOTALL).findall(links)[0].replace('.mp4', '').replace('.flv', '').replace('.wmv', '').replace('.avi', '') duration=re.compile('<div class="caption left">(.+?)</div>',re.DOTALL).findall(links)[0] iconimage=re.compile('<img class="static" src="(.+?)"',re.DOTALL).findall(links)[0].replace('?from_helper', '') name = common.CLEANUP(name) url2 = name + "|SPLIT|" + url if not "files" in duration.lower(): common.addLink("[COLOR white]" + name + "[/COLOR] - [COLOR pink]" + duration + "[/COLOR]",url2,96,iconimage,fanart) if nextpage == 1: try: np=re.compile('<a href="([^"]*)" class="pop" rel=".+?">NEXT').findall(link)[0] np = np.replace('&','&') np = 'http://motherless.com' + np common.addDir('[COLOR yellow]Next Page >>[/COLOR]',np,94,icon,fanart) except:pass
def MAIN_MENU(): common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]", "url", 234, icon, fanart) link = common.open_url('http://justporno.tv').replace('\n', '') match = re.compile('<span class="desc-box-channels">(.+?)</span>').findall( link)[0] match2 = re.compile('<li>(.+?)</li>').findall(match) for links in match2: name = re.compile('<a href=".+?" title=".+?">(.+?)</a>', re.DOTALL).findall(links)[0] url = re.compile('<a href="(.+?)" title=".+?">.+?</a>', re.DOTALL).findall(links)[0] url = "http://justporno.tv" + url name = common.CLEANUP(name) common.addDir(name, url, 231, icon, fanart) kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(50)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(55)') else: xbmc.executebuiltin('Container.SetViewMode(50)')
def GET_CONTENT(url): nextpage = 0 try: a, url = url.split('|') except: nextpage = 1 checker = url try: link = common.open_url(url).replace('/n', '').replace("'", '"') except: dialog.ok(AddonTitle, "Error connecting to website. Please try again.") quit() match = re.compile('<div id="video(.+?)</p></div>', re.DOTALL).findall(link) for links in match: name = re.compile('title="(.+?)"', re.DOTALL).findall(links)[0] url = re.compile('href="(.+?)"', re.DOTALL).findall(links)[0] try: time = re.compile('<strong>(.+?)</strong>', re.DOTALL).findall(links)[0] except: time == "Unknown" try: rating = re.compile('<strong>.+?</strong> - (.+?) - <', re.DOTALL).findall(links)[0] except: rating == "0%" iconimage = re.compile('src="(.+?)"', re.DOTALL).findall(links)[0] if "THUMBNUM" in iconimage: iconimage = iconimage.replace('THUMBNUM', '1') name = common.CLEANUP(name) url = 'http://xvideos.com' + url url = name.title() + "|SPLIT|" + url + "|SPLIT|" + iconimage common.addLink( "[COLOR pink]" + rating + "[/COLOR] - [COLOR white]" + name.title() + " - Duration: " + time + "[/COLOR]", url, 263, iconimage, fanart) if nextpage == 1: try: np = re.compile( '<a href="([^"]*)" class="no-page">Next</a>').findall(link)[0] np = 'http://xvideos.com' + np common.addDir('[COLOR white]Next Page >>[/COLOR]', np, 261, icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(url): nextpage = 0 try: a, url = url.split('|') except: nextpage = 1 checker = url result = common.open_url(url) match = re.compile( 'video-box four-column(.+?)<div class="video-box-title">', re.DOTALL).findall(result) for item in match: try: title = re.compile("alt=(.+?)'").findall(item)[0] url = re.compile('<a href="(.+?)"').findall(item)[0] iconimage = re.compile('<img src="(.+?)"').findall(item)[0] if "icon-hd-text" in item: name = "[COLOR orangered]HD[/COLOR][COLOR white] - " + title + "[/COLOR]" else: name = "[COLOR yellow]SD[/COLOR][COLOR white] - " + title + "[/COLOR]" name = name.replace("'", '') name = common.CLEANUP(name) url2 = name + '|SPLIT|' + url + '|SPLIT|' + iconimage common.addLink(name, url2, 73, iconimage, iconimage) except: pass if nextpage == 1: try: np = re.compile('<li class="current"(.+?)<div id="next">', re.DOTALL).findall(result) for item in np: current = re.compile( '<div class="currentPage" data-page-number=".+?">(.+?)</div>' ).findall(item)[0] url = re.compile('<a href="(.+?)=').findall(item)[0] next = int(float(current)) + 1 url = "http://youporn.com" + str(url) + "=" + str(next) common.addDir('[COLOR pink]Next Page >>[/COLOR]', url, 71, next_icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(url): nextpage = 0 try: a, url = url.split('|') except: nextpage = 1 checker = url result = common.open_url(url) match = re.compile( 'class="video-listing two-in-row(.+?)<div class="pages">', re.DOTALL).findall(result) string = str(match) match2 = re.compile('<li(.+?)</li>', re.DOTALL).findall(string) for item in match2: try: title = re.compile( '<a href=".+?" title="(.+?)" class=".+?" >').findall(item)[0] url = re.compile( '<a href="(.+?)" title=".+?" class=".+?" >').findall(item)[0] rating = re.compile( '<span class="video-percent">(.+?)</span>').findall(item)[0] video_views = re.compile( '<span class="video-views">(.+?)</span>').findall(item)[0] iconimage = re.compile('data-src="(.+?)"').findall(item)[0] icon = "http:" + iconimage url = "http://www.redtube.com" + str(url) percent = "[COLOR red]" + rating + "[/COLOR]" name = "[COLOR white] - " + title + "[/COLOR]" views = "[COLOR grey] | [I]" + video_views + " Views[/I][/COLOR]" name = common.CLEANUP(name) url2 = name + '|SPLIT|' + url + '|SPLIT|' + icon common.addLink(percent + name + views, url2, 44, icon, fanart) except: pass if nextpage == 1: try: np = re.compile('<link rel="next" href="(.+?)"').findall(result)[0] common.addDir('[COLOR white]Next Page >>[/COLOR]', np, 42, next_icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(url): nextpage = 0 try: a,url = url.split('|') except: nextpage = 1 checker = url try: link = common.open_url(url).replace('/n','').replace("'",'"') except: dialog.ok(AddonTitle, "Error connecting to website. Please try again.") quit() match=re.compile('<a(.+?)</a>',re.DOTALL).findall(link) for links in match: try: name=re.compile('<div class="title">(.+?)</div>',re.DOTALL).findall(links)[0] url=re.compile('href="(.+?)"',re.DOTALL).findall(links)[0] try: time=re.compile('<div class="time">(.+?)</div>',re.DOTALL).findall(links)[0] except: time == "Unknown" try: rating=re.compile('<span class="blue-thumb-up">(.+?)</span>',re.DOTALL).findall(links)[0] except: rating == "0%" try: iconimage=re.compile('<img src="(.+?)"',re.DOTALL).findall(links)[0] except: iconimage=re.compile('sprite="(.+?)"',re.DOTALL).findall(links)[0] name = common.CLEANUP(name) url='http://pornxs.com' + url url = name + "|SPLIT|" + url + "|SPLIT|" + iconimage common.addLink("[COLOR pink]" + rating + "[/COLOR] - [COLOR white]" + name + " - Duration: " + time + "[/COLOR]",url,253,iconimage,fanart) except: pass if nextpage == 1: try: try: np=re.compile('<link rel="next" href="(.+?)">').findall(link)[0] np = 'http://pornxs.com' + np except: np=re.compile('<a class="pagination-next" href="(.+?)">').findall(link)[0] common.addDir('[COLOR white]Next Page >>[/COLOR]',np,251,icon,fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(url): url_for_next = url nextpage = 0 try: a, url = url.split('|') except: nextpage = 1 result = common.open_url(url) match = re.compile( '<section id="pageContent" class="page-content " >(.+?)<div class="pager paging">', re.DOTALL).findall(result) string = str(match) match2 = re.compile('<a class="thumb(.+?)</a>', re.DOTALL).findall(string) for item in match2: title = re.compile('alt="(.+?)"').findall(item)[0] url = re.compile('href="(.+?)" >').findall(item)[0] iconimage = re.compile('src="(.+?)"').findall(item)[0] if not "http" in iconimage: iconimage = re.compile('data-original="(.+?)"').findall(item)[0] time = re.compile('<time>(.+?)</time>').findall(item)[0] url = "http://pornhd.com" + str(url) name = "[COLOR white]" + title + "[/COLOR]" name = common.CLEANUP(name) url2 = name + '|SPLIT|' + url common.addLink(name + " - Dur: " + time, url2, 53, iconimage, iconimage) if nextpage == 1: try: next_url = "" if not "=" in url_for_next: url_for_next = url_for_next + "?page=1" a, b = url_for_next.split("=") c = int(b) + 1 next_url = a + "=" + str(c) common.addDir('[COLOR crimson]Next Page >>[/COLOR]', next_url, 51, next_icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(url): nextpage = 0 try: a,url = url.split('|') except: nextpage = 1 checker = url try: link = common.open_url(url).replace('/n','').replace("'",'"') except: dialog.ok(AddonTitle, "Error connecting to website. Please try again.") quit() match=re.compile('<div class="mb(.+?)<div class="mbrate">',re.DOTALL).findall(link) for links in match: name=re.compile('<a href=".+?" title="(.+?)"',re.DOTALL).findall(links)[0] url=re.compile('<a href="(.+?)" title=".+?"',re.DOTALL).findall(links)[0] try: quality=re.compile('<div class="mvhdico"><span>(.+?)</span>',re.DOTALL).findall(links)[0] except: quality == "null" iconimage=re.compile('src="(.+?)"',re.DOTALL).findall(links)[0] name = common.CLEANUP(name) url='https://www.eporner.com' + url url = name + "|SPLIT|" + url + "|SPLIT|" + iconimage if not quality == "null": common.addLink("[COLOR pink]" + quality + "[/COLOR] - " + name,url,243,iconimage,fanart) else: common.addLink(name,url,243,iconimage,fanart) if nextpage == 1: try: try: np=re.compile('<a href=\'([^"]*).+?title=.+?ext page\'>').findall(link)[0] except: try: np=re.compile('<a href=\"([^"]*)\" title=\"Next page\">',re.DOTALL).findall(link)[0] except: pass np=np.replace("'","").replace('"','') np = 'https://www.eporner.com' + np common.addDir('[COLOR white]Next Page >>[/COLOR]',np,241,icon,fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(url): original = url nextpage = 0 try: a, url = url.split('|') except: nextpage = 1 checker = url result = common.open_url(url) match = re.compile('<div class="list__item">(.+?)</a></div>', re.DOTALL).findall(result) for item in match: try: title = re.compile('title="(.+?)"').findall(item)[0] url = re.compile('href="(.+?)"').findall(item)[0] iconimage = re.compile('data-original="(.+?)"').findall(item)[0] if "http" not in iconimage: iconimage = re.compile('altsrc="(.+?)"').findall(item)[0] time = re.compile('<time>(.+?)</time>').findall(item)[0] url = 'http://www.perfectgirls.net' + url url2 = title + '|SPLIT|' + url name = '[COLOR pink]' + title + '[/COLOR] - ' + time name = common.CLEANUP(name) common.addLink(name, url2, 313, iconimage, iconimage) except: pass if nextpage == 1: b = re.compile( '<a class="btn_wrapper__btn" href="([^"]*)">Next</a></li>' ).findall(result)[0] a = original.rpartition('/')[0] url = a + "/" + b common.addDir('[COLOR pink]Next Page >>[/COLOR]', url, 311, icon, fanart) kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(url): nextpage = 0 try: a, url = url.split('|') except: nextpage = 1 checker = url result = common.open_url(url) match = re.compile('<div class="video-item"(.+?)</div>', re.DOTALL).findall(result) for item in match: title = re.compile('<img src=".+?" alt="(.+?)"').findall(item)[0] url = re.compile('<a href="(.+?)" class="thumb">').findall(item)[0] iconimage = re.compile('<img src="(.+?)"').findall(item)[0] uploaded = re.compile('<li>(.+?)</li>').findall(item)[0] views = re.compile('<li><i class="fa fa-eye"></i>(.+?)</li>').findall( item)[0] rating = re.compile( '<li><i class="fa fa-thumbs-o-up"></i>(.+?)</li>').findall(item)[0] iconimage = 'http://' + iconimage url = 'http://spankbang.com' + url title = common.CLEANUP(title) url2 = title + '|SPLIT|' + url name = '[COLOR red][B]' + rating + '[/B][/COLOR] - ' + title + ' - ' + uploaded + ' |' + views + ' Views' common.addLink(name, url2, 204, iconimage, iconimage) if nextpage == 1: try: np = re.compile('<link rel="next" href="(.+?)" />', re.DOTALL).findall(result)[0] common.addDir('[COLOR pink]Next Page >>[/COLOR]', np, 202, icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(url): nextpage = 0 try: a, url = url.split('|') except: nextpage = 1 checker = url try: link = common.open_url(url).replace('/n', '').replace("'", '"') except: dialog.ok(AddonTitle, "Error connecting to website. Please try again.") quit() match = re.compile('<div class="header-label"(.+?)<ul class="pageing">', re.DOTALL).findall(link)[0] match2 = re.compile('<li>(.+?)</li>', re.DOTALL).findall(match) for links in match2: name = re.compile('title="(.+?)"', re.DOTALL).findall(links)[0] url = re.compile('<a href="(.+?)"', re.DOTALL).findall(links)[0] iconimage = re.compile('<img src="(.+?)"', re.DOTALL).findall(links)[0] name = common.CLEANUP(name) url = 'http://www.nxgx.com' + url url = name + "|SPLIT|" + url + "|SPLIT|" + iconimage common.addLink(name, url, 273, iconimage, fanart) if nextpage == 1: try: np = re.compile( '<li><a class="selected" >.+?<\/a><\/li>.+?<li><a href="(.+?)">.+?<\/a><\/li>', re.DOTALL).findall(link)[0] np = 'http://www.nxgx.com' + np common.addDir('[COLOR white]Next Page >>[/COLOR]', np, 271, icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(url): nextpage = 0 try: a, url = url.split('|') except: nextpage = 1 checker = url result = common.open_url(url) match = re.compile('<article(.+?)</article>', re.DOTALL).findall(result) for item in match: try: title = re.compile('<a href=".+?" title="(.+?)"').findall(item)[0] url = re.compile( '<meta itemprop="contentUrl" content="(.+?)"').findall(item)[0] ref_url = re.compile('<a href="(.+?)" title=').findall(item)[0] iconimage = re.compile( '<img itemprop="thumbnail" src="(.+?)"').findall(item)[0] name = common.CLEANUP(title) url2 = name + '|SPLIT|' + ref_url + '|SPLIT|' + url common.addLink('[COLOR white]' + name + '[/COLOR]', url2, 223, iconimage, fanart) except: pass if nextpage == 1: try: np = re.compile('<link rel="next" href="(.+?)" />').findall( result)[0] common.addDir('[COLOR white]Next Page >>[/COLOR]', np, 221, icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def MAIN_MENU(): common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]", "url", 14, icon, fanart) common.addDir("[COLOR pink][I]50 Newest Videos[/I][/COLOR]", NEW_VIDS, 11, icon, fanart) common.addDir("[COLOR pink][I]Top Rated[/I][/COLOR]", TOP_VIDS, 11, icon, fanart) common.addDir("[COLOR pink][I]Most Viewed[/I][/COLOR]", MOST_VIEW, 11, icon, fanart) common.addDir("[COLOR pink][I]Most Commented[/I][/COLOR]", MOST_COM, 11, icon, fanart) result = common.open_url('https://www.xhamster.com') match = re.compile( '<div class="head" data-block="channels-straight">(.+?)<a href="https://xhamster.com/channels.php" class="bottom">', re.DOTALL).findall(result) string = str(match) match2 = re.compile('<a(.+?)/a>', re.DOTALL).findall(string) fail = 0 videos = 0 for item in match2: try: title = re.compile('href=".+?">(.+?)<').findall(item)[0] url = re.compile('href="(.+?)">.+?<').findall(item)[0] name = "[COLOR white]" + title + "[/COLOR]" name = common.CLEANUP(name) if not "<" in name: common.addDir(name, url, 11, icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(50)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(55)') else: xbmc.executebuiltin('Container.SetViewMode(50)')
def DISPLAY_STORY(url): result = common.open_url(url) try: match = re.compile('<!-- CONTENT -->.+?<div (.+?)story_info">', re.DOTALL).findall(result) string = str(match) match2 = re.compile('class="block(.+?)ass="', re.DOTALL).findall(string) for item in match2: content = re.compile('_panel">(.+?)<div cl').findall(item)[0] display = str(content).replace('<!-- VOTES -->', '') #a = common.strip_tags(display) a = common.CLEANUP(display) common.TextBoxes("%s" % a) except: dialog = xbmcgui.Dialog() dialog.ok( 'XNXX.com', 'There was an error processing the request. Please try another link.' )
def GET_CONTENT(url): nextpage = 0 try: a,url = url.split('|') except: nextpage = 1 checker = url result = common.open_url(url) match = re.compile('<ul class="thumbs-items">(.+?)<div class="pagination">',re.DOTALL).findall(result) string = str(match) match2 = re.compile('<a itemprop=(.+?)</a>',re.DOTALL).findall(string) for item in match2: title=re.compile('<span itemprop="name" class="thumb-title">(.+?)</span>').findall(item)[0] url=re.compile('href="(.+?)">').findall(item)[0] iconimage=re.compile('data-original="(.+?)"').findall(item)[0] duration=re.compile('<span itemprop="duration" class="duration">(.+?)</span>').findall(item)[0] views=re.compile('<span class="counter"><i class="ico-views"></i>(.+?)</span>').findall(item)[0] url2 = title + '|SPLIT|' + url name = '[COLOR pink]' + title + '[/COLOR] | [I]Duration: ' + duration + ' - Views: ' + views name = common.CLEANUP(name) common.addLink(name,url2,83,iconimage,iconimage) if nextpage == 1: try: np=re.compile('<li class="pagination-next"><a href="(.+?)">Next</a></li>').findall(result)[0] url = 'http://www.pornfun.com' + np common.addDir('[COLOR pink]Next Page >>[/COLOR]',url,81,icon,fanart) except:pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(name, url, iconimage): leave = 0 if "[COLOR pink][I]Most Viewed[/I][/COLOR]" in name: leave = 1 common.addDir("[COLOR pink][I]Of Today[/I][/COLOR]", NEW_URL, 211, icon, fanart) common.addDir("[COLOR pink][I]Of The Week[/I][/COLOR]", 'http://www.porn00.org/most-viewed-week/', 211, icon, fanart) common.addDir("[COLOR pink][I]Of The Month[/I][/COLOR]", 'http://www.porn00.org/most-viewed-month/', 211, icon, fanart) common.addDir("[COLOR pink][I]Ever[/I][/COLOR]", 'http://www.porn00.org/most-viewed-ever/', 211, icon, fanart) kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(50)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(55)') else: xbmc.executebuiltin('Container.SetViewMode(50)') if leave == 0: nextpage = 0 try: a, url = url.split('|') except: nextpage = 1 checker = url result = common.open_url(url) match = re.compile('2> <a(.+?)<li class="tags">', re.DOTALL).findall(result) for item in match: title = re.compile('title="(.+?)" href=".+?">').findall(item)[0] url = re.compile('title=".+?" href="(.+?)">').findall(item)[0] iconimage = re.compile('src="(.+?)"').findall(item)[0] title = common.CLEANUP(title) url2 = title + '|SPLIT|' + url name = '[COLOR white]' + title + '[/COLOR]' common.addLink(name, url2, 213, iconimage, iconimage) if nextpage == 1: try: np = re.compile("<link rel='next' href='(.+?)' />", re.DOTALL).findall(result)[0] common.addDir('[COLOR pink]Next Page >>[/COLOR]', np, 211, icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def MAIN_MENU(): common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]", "url", 45, search_icon, fanart) common.addDir("[COLOR pink][I]Newest[/I][/COLOR]", NEW_VIDS, 42, new_icon, fanart) common.addDir("[COLOR pink][I]Recommended[/I][/COLOR]", RECOM, 42, discussed_icon, fanart) common.addDir("[COLOR pink][I]Top Rated[/I][/COLOR]", TOP_VIDS, 42, top_icon, fanart) common.addDir("[COLOR pink][I]Most Viewed[/I][/COLOR]", MOST_VIEW, 42, viewed_icon, fanart) common.addDir("[COLOR pink][I]Most Favourited[/I][/COLOR]", MOST_FAV, 42, fav_icon, fanart) result = common.open_url('http://www.redtube.com/categories') match = re.compile( '<div class="content channelsPage">(.+?)<div class="footerWrapper">', re.DOTALL).findall(result) string = str(match) match2 = re.compile('<div class="video">(.+?)</li>', re.DOTALL).findall(string) fail = 0 videos = 0 for item in match2: url = re.compile('<a title=".+?" href="(.+?)">').findall(item)[0] title = re.compile('<a title="(.+?)" href=".+?">').findall(item)[0] icon_cat = re.compile('data-src="(.+?)"').findall(item)[0] a = str(icon_cat) icon_cat = "http:" + a number = re.compile('<p class="numberVideos">(.+?) V').findall(item)[0] b = str(number) c = b.replace(',', '').replace( ' Videos', '').replace('\\n', '').replace('\\r', '').replace( '\\t', '').replace('\n', '').replace('\r', '').replace('\t', '') videos = videos + int(float(c)) url3 = url url4 = url3.replace('\\', '') url = "http://www.redtube.com" + url4 name = "[COLOR white]" + title + " [COLOR white] - " + c + " Videos[/COLOR]" name = common.CLEANUP(name) common.addDir(name, url, 42, icon_cat, fanart) try: common.addDir( "[COLOR white]Total Videos: [COLOR white]{:,}".format(videos) + "[/COLOR]", NEW_VIDS, 42, icon, fanart) except: try: common.addDir( "[COLOR white]Total Videos: [COLOR white]" + str(videos) + "[/COLOR]", NEW_VIDS, 42, icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(50)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(55)') else: xbmc.executebuiltin('Container.SetViewMode(50)')
def GET_CONTENT(url): nextpage = 0 try: a, url = url.split('|') except: nextpage = 1 checker = url result = common.open_url(url) match = re.compile('<div id="video(.+?)</p></div>', re.DOTALL).findall(result) for item in match: title = re.compile('title=(.+?)">').findall(item)[0] try: res = re.compile( '<span class="video-hd-mark">(.+?)</span>').findall(item)[0] except: res = 'SD' pass if str(res) == "HD": resolution = "[COLOR orangered]" + str(res) + "[/COLOR] - " else: resolution = "[COLOR yellow]" + str(res) + "[/COLOR] - " url = re.compile('<a href="(.+?)"').findall(item)[0] iconimage = re.compile('<img src="(.+?)"').findall(item)[0] iconimage = iconimage.replace("THUMBNUM", "5") name = "[COLOR white]" + title + "[/COLOR]" name = name.replace('"', '') name = common.CLEANUP(name) url2 = name + '|SPLIT|' + url common.addLink(resolution + name, url2, 33, iconimage, iconimage) if nextpage == 1: try: np = re.compile( '<a href="([^"]*)" class="no-page">Next</a></li></ul></div>' ).findall(result)[0] np = np.replace('&', '&') np = 'http://www.xnxx.com' + np common.addDir('[COLOR yellow]Next Page >>[/COLOR]', np, 31, next_icon, fanart) except: pass if not "http://www.xnxx.com/home/10" in checker: if "/home/" in checker: a, b, c, d, e = checker.split('/') new = int(float(e)) + 1 url = "http://www.xnxx.com/home/" + str(new) common.addDir('[COLOR yellow]Next Page >>[/COLOR]', url, 31, next_icon, fanart) elif checker == "http://www.xnxx.com": url = "http://www.xnxx.com/home/1" common.addDir('[COLOR yellow]Next Page >>[/COLOR]', url, 31, next_icon, fanart) kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(url): nextpage = 0 try: a, url = url.split('|') except: nextpage = 1 checker = url result = common.open_url(url) if '<div id="searchLoader">' in result: match = re.compile('<div id="searchLoader">(.+?)iconPagerNextHover', re.DOTALL).findall(result) elif 'last50.php' in url: match = re.compile('href="/last50.php">(.+?)<div id="footer">', re.DOTALL).findall(result) elif '<div class="video new-date">' in result: match = re.compile( '<div class="video new-date">(.+?)<div class="category-related-container">', re.DOTALL).findall(result) else: match = re.compile("id='vListTop'>(.+?)<div class='pager'>", re.DOTALL).findall(result) string = str(match) match2 = re.compile('<a(.+?)<div class="video">', re.DOTALL).findall(string) for item in match2: try: title = re.compile('alt="(.+?)"').findall(item)[0] url = re.compile('href="(.+?)"').findall(item)[0] rating = re.compile('<div class="fr">(.+?)</div>').findall(item)[0] duration = re.compile('<b>(.+?)</b>').findall(item)[0] try: vid_views = re.compile( '<div class="views-value">(.+?)</div>').findall(item)[0] except: vid_views = "Unknown" try: iconimage = re.compile("<img src=(.+?) class").findall(item)[0] iconimage = iconimage.replace('\\', '').replace("'", '') except: iconimage = "null" percent = "[COLOR red]" + rating + "[/COLOR]" name = "[COLOR white] - " + title + "[/COLOR]" length = "[COLOR grey] | [I]Length: " + duration + "[/I][/COLOR]" views = "[COLOR grey] | [I]Views: " + vid_views + "[/I][/COLOR]" url = url + "&Referer=" + checker name = common.CLEANUP(name) url2 = name + "|SPLIT|" + url common.addLink(percent + name + length + views, url2, 13, iconimage, fanart) except: pass if nextpage == 1: try: if "class='last' overicon='iconPagerNextHover'>" in result: np = re.compile( "<a href='([^']*)' class='last' overicon='iconPagerNextHover'>" ).findall(result)[0] else: np = re.compile('<link rel="next" href="(.+?)"').findall( result)[0] np = np.replace('&', '&') common.addDir('[COLOR white]Next Page >>[/COLOR]', np, 11, icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')
def GET_CONTENT(url): nextpage = 0 try: a, url = url.split('|') except: nextpage = 1 namelist = [] urllist = [] iconlist = [] ratinglist = [] result = common.open_url(url) match = re.compile('<ul class="listThumbs">(.+?)<span class="numbers">', re.DOTALL).findall(result) string = str(match) match2 = re.compile('<a(.+?)class="icon-thumbs-up">', re.DOTALL).findall(string) for item in match2: title = re.compile('class="title">(.+?)<').findall(item)[0] url = re.compile('href="(.+?)"').findall(item)[0] iconimage = re.compile('src="(.+?)"').findall(item)[0] url = "http://p**n.com" + str(url) try: rating = re.compile('class="rating">(.+?)<i').findall(item)[0] rating = rating.replace('% ', '') rating = int(rating) except: rating = 0 name = common.CLEANUP(title) if '<span class="hd">' in item: name = '[COLOR white] - [/COLOR][COLOR deepskyblue]HD[/COLOR] - [COLOR white]' + name + '[/COLOR]' else: name = '[COLOR white] - [/COLOR][COLOR orange]SD[/COLOR] - [COLOR white]' + name + '[/COLOR]' namelist.append(name) urllist.append(url) iconlist.append(iconimage) ratinglist.append(rating) combinedlists = list(zip(ratinglist, namelist, urllist, iconlist)) tup = sorted(combinedlists, key=lambda x: int(x[0]), reverse=True) for rating, name, url, iconimage in tup: url2 = name + '|SPLIT|' + url common.addLink('[COLOR red]' + str(rating) + '%[/COLOR]' + name, url2, 63, iconimage, iconimage) if nextpage == 1: try: np = re.compile('<link rel="next" href="(.+?)"').findall(result)[0] url = "http://p**n.com" + str(np) common.addDir('[COLOR red]Next Page >>[/COLOR]', url, 61, next_icon, fanart) except: pass kodi_name = common.GET_KODI_VERSION() if kodi_name == "Jarvis": xbmc.executebuiltin('Container.SetViewMode(500)') elif kodi_name == "Krypton": xbmc.executebuiltin('Container.SetViewMode(52)') else: xbmc.executebuiltin('Container.SetViewMode(500)')