Beispiel #1
0
def LIVE_CHANNELS():

    namelist = []
    urllist = []
    combinedlists = []
    url = 'http://www.freeiptvlinks.net/category/iptv-links/adult/'
    response = common.open_url(url)

    content = dom_parser2.parse_dom(response, 'div',
                                    {'class': 'entry-summary'})
    for item in content:
        if not 'download m3u' in item.content:
            urls = dom_parser2.parse_dom(item, 'a', req='href')[0][0]['href']

            response = common.open_url(urls)
            response = response.replace('#AAASTREAM:', '#A:').replace(
                '#EXTINF:', '#A:').replace('<br />', '').replace('<h4>', '')
            matches = re.compile('^#A:-?[0-9]*(.*?),(.*?)\n(.*?)$',
                                 re.I + re.M + re.U + re.S).findall(response)

            for params, display_name, url in matches:
                name = display_name.rstrip()
                namelist.append(name.encode('utf-8'))
                urllist.append(url.encode('utf-8'))
                combinedlists = list(zip(namelist, urllist))

    if combinedlists:
        for name, url in sorted(combinedlists):
            common.addLink('[COLOR pink]' + name.title() + '[/COLOR]', url,
                           996, icon, fanart)
Beispiel #2
0
def GET_CONTENT(url):

    nextpage = 0
    try: a,url = url.split('|')
    except: nextpage = 1
    
    checker = url
    if nextpage == 1:
        try: link = common.open_url(url).replace('/n','').replace("'",'"')
        except: dialog.ok(AddonTitle, "Error connecting to website. Please try again."); quit()
    else: link = common.open_url(url).replace('/n','').replace("'",'"')

    link = common.open_url(url)
    if '?q=' in url: r = re.compile('<div class="videos v-search-result">(.+?)</div>',re.DOTALL).findall(link)[0]
    else: r = re.compile('<div class="v-content02 aft">(.+?)</div>',re.DOTALL).findall(link)[0]
    r = re.compile('<a(.+?)</a>',re.DOTALL).findall(r)

    for i in r:
        name = re.compile('alt="(.+?)"').findall(i)[0]
        time = re.compile('<span class="time">(.+?)</span>').findall(i)[0]
        url = re.compile('href="(.+?)"').findall(i)[0]; url = urlparse.urljoin(BASE_LINK, url)
        iconimage = re.compile('<img src="(.+?)"').findall(i)[0]
        url = urlparse.urljoin(BASE_LINK, url); name = common.replaceHTMLCodes(name)
        url = name + "|SPLIT|" + url + "|SPLIT|" + iconimage
        common.addLink("[COLOR white]" + name + " - " + time + "[/COLOR]",url,293,iconimage,fanart)

    if nextpage == 1:
        try:
            np = re.compile('<a href="([^"]+)" class="pag-next">next</a>').findall(link)[0]
            np = urlparse.urljoin(BASE_LINK, np)
            common.addDir('[COLOR white]Next Page >>[/COLOR]',np,291,icon,fanart)       
        except: pass

    common.SET_VIEW('thumbs')
Beispiel #3
0
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)')
Beispiel #4
0
def MAIN_MENU():

    common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]", "url", 274, icon, fanart)

    try:
        link = common.open_url('http://www.nxgx.com').replace('/n', '')
    except:
        dialog.ok(AddonTitle, "Error connecting to website. Please try again.")
        quit()

    match = re.compile('<div class="categories"(.+?)</ul>',
                       re.DOTALL).findall(link)[0]
    match2 = re.compile('<li>(.+?)</li>').findall(match)
    for links in match2:
        name = re.compile('<a href=".+?">(.+?)</a>',
                          re.DOTALL).findall(links)[0]
        url = re.compile('<a href="(.+?)">.+?</a>',
                         re.DOTALL).findall(links)[0]
        url = 'http://www.nxgx.com' + url
        common.addDir(name, url, 271, 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)')
Beispiel #5
0
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)')
Beispiel #6
0
def STORY_MENU():

    result = common.open_url('http://sexstories.com')

    match = re.compile(
        '<div id="menu">.+?<h2>Genres</h2>(.+?)<div id="content">',
        re.DOTALL).findall(result)
    string = str(match)
    match2 = re.compile('<li>(.+?)</li>', re.DOTALL).findall(string)
    for item in match2:
        title = re.compile('<a href=".+?">(.+?)</a>').findall(item)[0]
        url = re.compile('<a href="(.+?)">.+?</a>').findall(item)[0]
        url3 = url
        url4 = url3.replace('\\', '')
        url = "http://www.sexstories.com" + url4
        name = "[COLOR white]" + title + "[/COLOR]"
        common.addDir(name, url, 39, 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)')
Beispiel #7
0
def MAIN_MENU():

	common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]","url",84,icon,fanart)
	common.addDir("[COLOR pink][I]Latest Videos[/I][/COLOR]",LATEST_VIDS,81,icon,fanart)
	common.addDir("[COLOR pink][I]Most Popular[/I][/COLOR]",POPULAR_VIDS,81,icon,fanart)
	common.addDir("[COLOR pink][I]Top Rated[/I][/COLOR]",TOP_VIDS,81,icon,fanart)
	common.addDir("[COLOR pink][I]Longest Videos[/I][/COLOR]",LONGEST_VIDS,81,icon,fanart)

	result = common.open_url('http://pornfun.com/categories/')
	
	match = re.compile('<ul class="thumbs-categories">(.+?)<div class="bottom-spots">',re.DOTALL).findall(result)
	string = str(match)
	match2 = re.compile('<li class="thumb-category">(.+?)</li>',re.DOTALL).findall(string)
	fail = 0
	videos = 0
	for item in match2:
		url=re.compile('<a href="(.+?)">').findall(item)[0]
		title=re.compile('<span class="category-title">(.+?)</span>').findall(item)[0]
		icon_cat=re.compile('data-original="(.+?)">').findall(item)[0]
		number=re.compile('<span class="added">(.+?)</span>').findall(item)[0]
		b = str(number)
		c = b.replace(',','').replace(' movies','')
		videos = videos + int(float(c))
		name = "[COLOR rose]" + title + " - " + number + "[/COLOR]"
		common.addDir(name,url,81,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)')
Beispiel #8
0
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('&amp;','&')
            np = 'http://motherless.com' + np
            common.addDir('[COLOR yellow]Next Page >>[/COLOR]',np,94,icon,fanart)       
        except:pass
Beispiel #9
0
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)')
Beispiel #10
0
def PLAY_URL(name, url, iconimage):

    dp = common.GET_LUCKY()
    name, url, iconimage = url.split('|SPLIT|')
    orig_url = "http://www.chaturbate.com" + url
    result = common.open_url(orig_url)
    match = re.compile('<head>(.+?)</html>', re.DOTALL).findall(result)
    string = str(match).replace('\\', '').replace('(', '').replace(')', '')
    url = "null"
    try:
        url = re.compile("src='([^']+)'").findall(string)[0]
    except:
        dialog.ok(AddonTitle, "Sorry, we are unable to find a playable link.")
        quit()
    url2 = url + '|Referer=' + orig_url
    dp.close()

    history_on_off = plugintools.get_setting("history_setting")
    if history_on_off == "true":
        date_now = datetime.datetime.now().strftime("%d-%m-%Y")
        time_now = datetime.datetime.now().strftime("%H:%M")
        a = open(HISTORY_FILE).read()
        b = a.replace(
            '#START OF FILE#', '#START OF FILE#\n<item>\n<date>' +
            str(date_now) + '</date>\n<time>' + str(time_now) +
            '</time>\n<name>' + str(name) + '</name>\n<link>' + str(url2) +
            '</link>\n<site>Chaturbate</site>\n<icon>' + str(iconimage) +
            '</icon>\n</item>\n')
        f = open(HISTORY_FILE, mode='w')
        f.write(str(b))
        f.close()

    liz = xbmcgui.ListItem(name, iconImage=iconimage, thumbnailImage=iconimage)
    xbmc.Player().play(url2, liz, False)
Beispiel #11
0
def POP_NOW(url):

    i = 1
    result = common.open_url(url)
    match = re.compile('<ul class="list">(.+?)<ul class="paging">',
                       re.DOTALL).findall(result)
    string = str(match)
    match2 = re.compile("<li>(.+?)</li>", re.DOTALL).findall(string)
    for item in match2:
        if i <= 7:
            try:
                title = re.compile('<a href=".+?"> (.+?)</a>').findall(item)[0]
                url = re.compile('<a href="(.+?)">.+?</a>').findall(item)[0]
                iconimage = re.compile('<img src="(.+?)"').findall(item)[0]
                try:
                    age = re.compile('<span class="age gender.+?">(.+?)</span>'
                                     ).findall(item)[0]
                except:
                    age = "Unknown"
                if 'thumbnail_label_c_hd">' in item:
                    name = "[COLOR pink]HD[/COLOR][COLOR yellow] - " + title + " - Age " + age + "[/COLOR]"
                elif 'label_c_new' in item:
                    name = "[COLOR blue]NEW[/COLOR][COLOR yellow] - " + title + " - Age " + age + "[/COLOR]"
                else:
                    name = "[COLOR yellow]" + title + " - Age " + age + "[/COLOR]"
                url2 = title + '|SPLIT|' + url + '|SPLIT|' + iconimage
                common.addLink(name, url2, 23, iconimage, fanart)
                i = i + 1
            except:
                pass
Beispiel #12
0
def MAIN_MENU():

	common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]","url",244,icon,fanart)

	try:
		link = common.open_url('https://www.eporner.com/0/').replace('/n','')
	except:
		dialog.ok(AddonTitle, "Error connecting to website. Please try again.")
		quit()
		
	match=re.compile('<div id="categories-list-left">(.+?)<div class="clear">',re.DOTALL).findall(link)[0]
	match2=re.compile('<a(.+?)/div></div>').findall(match)
	for links in match2:
		name=re.compile('href=".+?"><strong>(.+?)</strong></a> <div class="cllnumber">',re.DOTALL).findall(links)[0]
		url=re.compile('href="(.+?)".+?<strong>.+?</strong></a> <div class="cllnumber">',re.DOTALL).findall(links)[0]
		vids=re.compile('<div class="cllnumber">\((.+?)\)<',re.DOTALL).findall(links)[0]
		url='https://www.eporner.com' + url
		common.addDir(name + " - " + vids + " videos",url,241,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)')
Beispiel #13
0
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)')
Beispiel #14
0
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", 314, icon, fanart)

    result = common.open_url('http://www.perfectgirls.net')

    match = re.compile('<li class="header-submenu__item">(.+?)</li>',
                       re.DOTALL).findall(result)
    for item in match:
        try:
            url = re.compile('href="(.+?)">.+?</a>').findall(item)[0]
            title = re.compile('href=".+?">(.+?)</a>').findall(item)[0]
            url = 'http://www.perfectgirls.net' + url + "/1"
            name = "[COLOR white]" + title + " [/COLOR]"
            common.addDir(name, url, 311, 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)')
Beispiel #16
0
def MAIN_MENU():

    common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]", 'url', 64, icon, fanart)
    common.addDir("[COLOR pink][I]New Videos[/I][/COLOR]", NEW_URL, 211, icon,
                  fanart)
    common.addDir("[COLOR pink][I]Most Viewed[/I][/COLOR]", MOST_VIEW, 211,
                  icon, fanart)

    result = common.open_url('http://www.porn00.org/')

    match = re.compile('<ul id="categorias">(.+?)</ul>',
                       re.DOTALL).findall(result)
    string = str(match)
    match2 = re.compile("<li>(.+?)</li>", re.DOTALL).findall(string)

    for item in match2:
        title = re.compile("<a href='.+?'.+?'>(.+?)</a>").findall(item)[0]
        url = re.compile("<a href='(.+?)'.+?'>.+?</a>").findall(item)[0]
        name = "[COLOR white]" + title.capitalize() + "[/COLOR]"
        common.addDir(name, url, 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)')
Beispiel #17
0
def MAIN_MENU_PICTURES():

    result = common.open_url(BASE_IMAGE)

    match = re.compile(
        '<div class="sub_menu dark-menu">(.+?)<a class="feed-link medium"',
        re.DOTALL).findall(result)
    string = str(match)
    match2 = re.compile("<a(.+?)/a>", re.DOTALL).findall(string)

    for item in match2:
        url = re.compile('href="(.+?)" title=".+?">.+?<').findall(item)[0]
        name = re.compile('href=".+?" title=".+?">(.+?)<').findall(item)[0]
        url = "http://www.motherless.com" + url
        name = "[COLOR white]" + name + "[/COLOR]"
        common.addDir(name, url, 91, 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)')
Beispiel #18
0
def MAIN_MENU():

    common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]", "url", 97, icon, fanart)

    link = common.open_url(BASE_VIDEOS).replace('\n', '').replace('\r', '')

    match = re.compile('<div class="sub_menu dark-menu">(.+?)</div>').findall(
        link)[0]
    match2 = re.compile('<a(.+?)/a>').findall(match)

    for items in match2:
        name = re.compile('href=.+?>(.+?)<').findall(items)[0]
        url = re.compile('href="(.+?)"').findall(items)[0]
        url = "http://motherless.com" + url
        common.addDir('[COLOR white]' + name + '[/COLOR]', url, 94, 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)')
Beispiel #19
0
def DISPLAY_PICTURE(url):

	result = common.open_url(url)
	match = re.compile('<link rel="image_src".+?href="(.+?)">',re.DOTALL).findall(result)[0]

	SHOW = "ShowPicture(" + match + ')'
	xbmc.executebuiltin(SHOW)
Beispiel #20
0
def MAIN_MENU():

    common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]", "url", 264, icon, fanart)

    try:
        link = common.open_url('http://www.xvideos.com/tags').replace(
            '/n', '').replace('/r', '')
    except:
        dialog.ok(AddonTitle, "Error connecting to website. Please try again.")
        quit()

    match = re.compile('<ul class="tags-list" id="tags">(.+?)</ul>',
                       re.DOTALL).findall(link)[0]
    match2 = re.compile('<li>(.+?)</li>', re.DOTALL).findall(match)
    for links in match2:
        name = re.compile(
            '<a href=".+?"><b>(.+?)</b><span class="navbadge default">.+?</span></a>',
            re.DOTALL).findall(links)[0]
        url = re.compile(
            '<a href="(.+?)"><b>.+?</b><span class="navbadge default">.+?</span></a>',
            re.DOTALL).findall(links)[0]
        vids = re.compile(
            '<a href=".+?"><b>.+?</b><span class="navbadge default">(.+?)</span></a>',
            re.DOTALL).findall(links)[0]
        url = 'http://www.xvideos.com' + url
        name = "[COLOR pink]" + name + "[/COLOR] - [COLOR white]" + vids + " videos[/COLOR]"
        common.addDir(name, url, 261, 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)')
Beispiel #21
0
def PLAY_URL(name,url,iconimage):

	name,url = url.split('|SPLIT|')

	dp = common.GET_LUCKY()
	ref_url = url
	result = common.open_url(url)
	url = re.compile("video_url:.+?'(.+?)',",re.DOTALL).findall(result)[0]
	choice = dialog.select("[COLOR red]Please select an option[/COLOR]", ['[COLOR pink]Watch Video[/COLOR]','[COLOR pink]Add to Favourites[/COLOR]','[COLOR pink]Download Video[/COLOR]'])

	if choice == 1:
		a=open(FAVOURITES_FILE).read()
		b=a.replace('#START OF FILE#', '#START OF FILE#\n<item>\n<name>'+str(name)+'</name>\n<link>'+str(url)+'</link>\n<site>PornFun</site>\n<icon>'+str(iconimage)+'</icon>\n</item>\n')
		f= open(FAVOURITES_FILE, mode='w')
		f.write(str(b))
		f.close()
		dp.close()
		dialog.ok(AddonTitle, "[COLOR pink]" + name + " has been added to your favourites. You can access your favourites on the main menu.[/COLOR]")
		quit()
	
	elif choice == 2:
		try:
			download_location   = plugintools.get_setting("download_location")
			download_folder = xbmc.translatePath(download_location)
			_in = url
			name = name.replace(' ','_').replace('[COLOR','').replace('[/COLOR','').replace('[I]','').replace(']','').replace('|','').replace('%','').replace('-','').replace('[/I','').replace('[/B','').replace('[','').replace('/','').replace(':','')
			_out = download_folder + name + '.mp4'
			dp.close()
			a=open(DOWNLOADS_FILE).read()
			b=a.replace('#START OF FILE#', '#START OF FILE#\n<item>\n<name>'+str(_out)+'</name>\n<icon>'+str(iconimage)+'</icon>\n</item>\n')
			f= open(DOWNLOADS_FILE, mode='w')
			f.write(str(b))
			f.close()
			downloader.download(_in,_out,dp=None)
			dialog.ok(AddonTitle, "[COLOR pink]Your video has been successfully downloaded and can be viewed from the Your Downloads section on the main menu.[/COLOR]") 
		except: 
			try:
				os.remove(_out)
			except: pass
			dp.close()
			dialog.ok(AddonTitle, "[COLOR pink]Sorry, there was an error trying to download the video.[/COLOR]")
			quit()
	
	elif choice == 0:
		history_on_off  = plugintools.get_setting("history_setting")
		if history_on_off == "true":	
			date_now = datetime.datetime.now().strftime("%d-%m-%Y")
			time_now = datetime.datetime.now().strftime("%H:%M")
			a=open(HISTORY_FILE).read()
			b=a.replace('#START OF FILE#', '#START OF FILE#\n<item>\n<date>'+str(date_now)+'</date>\n<time>'+str(time_now)+'</time>\n<name>'+str(name)+'</name>\n<link>'+str(url)+'</link>\n<site>PornFun</site>\n<icon>'+str(iconimage)+'</icon>\n</item>\n')
			f= open(HISTORY_FILE, mode='w')
			f.write(str(b))
			f.close()

		liz = xbmcgui.ListItem(name, iconImage=iconimage, thumbnailImage=iconimage)
		dp.close()
		xbmc.Player ().play(url, liz, False)
	else:
		dp.close()
		quit()
Beispiel #22
0
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)')
Beispiel #23
0
def PICTURE_MENU():

    result = common.open_url('http://multi.xnxx.com')

    match = re.compile(
        'visible-md visible-sm " id="leftPanel">(.+?)<div class="row"><div  class="boxImg',
        re.DOTALL).findall(result)
    string = str(match)
    match2 = re.compile('<a hre(.+?)/a>', re.DOTALL).findall(string)

    for item in match2:
        title = re.compile('f=".+?" />(.+?)<').findall(item)[0]
        url = re.compile('f="(.+?)" />.+?<').findall(item)[0]
        url3 = url
        url4 = url3.replace('\\', '')
        url = "http://multi.xnxx.com" + url4
        name = "[COLOR white]" + title.title() + "[/COLOR]"
        common.addDir(name, url, 35, 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)')
Beispiel #24
0
def MAIN_MENU():

	common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]","url",254,icon,fanart)

	try:
		link = common.open_url('http://pornxs.com/new-categories/').replace('/n','').replace('/r','')
	except:
		dialog.ok(AddonTitle, "Error connecting to website. Please try again.")
		quit()
	
	match=re.compile('<ul class="categories">(.+?)</ul>',re.DOTALL).findall(link)[0]
	match2=re.compile('<a id=".+?" h(.+?)</a>',re.DOTALL).findall(match)
	for links in match2:
			name=re.compile('<div class="caption">(.+?)</div>',re.DOTALL).findall(links)[0]
			url=re.compile('ref="(.+?)"',re.DOTALL).findall(links)[0]
			iconimage=re.compile("background-image: url\('(.+?)'",re.DOTALL).findall(links)[0]
			iconimage='http://pornxs.com' + iconimage
			url='http://pornxs.com' + url
			name = name.lstrip()
			name = "[COLOR white]" + name + "[/COLOR]"
			common.addDir(name,url,251,iconimage,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)')
Beispiel #25
0
def PICTURE_CONTENT(url):

    result = common.open_url(url)

    match = re.compile(
        '<div class="smallMargin"></div><div class="clearfix">(.+?)<div class="bigMargin"></div><div class="clearfix">',
        re.DOTALL).findall(result)
    string = str(match)
    match2 = re.compile(
        '<div class="boxImg size_small home1 thumb"(.+?)</div></a></div>',
        re.DOTALL).findall(string)

    for item in match2:
        url = re.compile('<a href="(.+?)" target=').findall(item)[0]
        image = re.compile('d=".+?" src="(.+?)"').findall(item)[0]
        title = re.compile('<span class="descHome"><.+?>(.+?)<').findall(
            item)[0]
        url3 = url
        url4 = url3.replace('//', '')
        url = "http://multi.xnxx.com" + url4
        name = "[COLOR white]" + title + "[/COLOR]"
        common.addDir(name, url, 36, image, image)

    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)')
Beispiel #26
0
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)')
Beispiel #27
0
def SCRAPE_GALLERY(url):

    i = 0
    result = common.open_url(url)

    match = re.compile(
        '<div class="row galleryPage GalleryBlock" id="Gallery">(.+?)</div><div class="sponsorLink">',
        re.DOTALL).findall(result)
    string = str(match)
    match2 = re.compile('<a class="picture"(.+?) data-id',
                        re.DOTALL).findall(string)

    for item in match2:
        i = i + 1
        image = re.compile('href="(.+?)"').findall(item)[0]
        common.addLink("[COLOR white]Picture " + str(i) + "[/COLOR]", image,
                       37, image, image)

    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)')
Beispiel #28
0
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)')
Beispiel #29
0
def MAIN_MENU():

	common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]","url",205,icon,fanart)
	common.addDir("[COLOR pink][I]Trending[/I][/COLOR]",TRENDING_URL,202,icon,fanart)
	common.addDir("[COLOR pink][I]New[/I][/COLOR]",NEW_URL,202,icon,fanart)
	common.addDir("[COLOR pink][I]Most Popular[/I][/COLOR]",MOST_POP,201,icon,fanart)
	common.addDir("[COLOR pink][I]Most Liked[/I][/COLOR]",MOST_LIKE,201,icon,fanart)

	result = common.open_url('http://spankbang.com/categories')
	
	match = re.compile('<div class="categories">(.+?)</div>',re.DOTALL).findall(result)
	string = str(match)
	match2 = re.compile("<a h(.+?)</a>",re.DOTALL).findall(string)

	for item in match2:
		url=re.compile('ref="(.+?)"').findall(item)[0]
		title=re.compile('<span>(.+?)</span>').findall(item)[0]
		icon_cat=re.compile('src="(.+?)"').findall(item)[0]
		icon_cat = 'http://spankbang.com' + icon_cat
		url = 'http://spankbang.com' + url
		name = "[COLOR white]" + title + "[/COLOR]"
		common.addDir(name,url,202,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)')
Beispiel #30
0
def MAIN_MENU():

	common.addDir("[COLOR red][B]SEARCH[/B][/COLOR]","url",304,icon,fanart)

	result = common.open_url('http://www.watchxxxfree.com/categories/')
	
	match = re.compile('<li class="border-radius-5 box-shadow">(.+?)</li>',re.DOTALL).findall(result)
	fail = 0
	videos = 0
	for item in match:
		url=re.compile('<a href="(.+?)" title=".+?"><span>.+?</span></a>').findall(item)[0]
		title=re.compile('<a href=".+?" title="(.+?)"><span>.+?</span></a>').findall(item)[0]
		try:
			icon_cat=re.compile('data-lazy-src="(.+?)"').findall(item)[0]
			icon_cat = "http:" + icon_cat
		except: icon_cat=icon
		number=re.compile('<span class="nb_cat border-radius-5">(.+?)</span>').findall(item)[0]
		b = str(number)
		c = b.replace(',','').replace(' videos','').replace(' video','')
		videos = videos + int(float(c))
		name = "[COLOR white]" + title + " - " + number + "[/COLOR]"
		common.addDir(name,url,301,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)')