예제 #1
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
예제 #2
0
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)')
예제 #3
0
def MENU(url=None):

    lists = []
    display = 0

    if url == 'None': i = 1
    else: i = int(url)

    end = i + 9

    while i <= end:
        if i == 1: response = common.open_url(BASE)
        else: response = common.open_url(BASE + 'page/%s/' % str(i))
        lists = dom_parser2.parse_dom(
            response, 'div',
            {'class': re.compile('home_post_cont.+?post_box')})
        i = i + 1
        if lists:
            for item in lists:
                try:
                    url = dom_parser2.parse_dom(item.content, 'a',
                                                req='href')[0][0]['href']
                    iconimage = dom_parser2.parse_dom(item.content,
                                                      'img',
                                                      req='src')[0][0]['src']
                    name = dom_parser2.parse_dom(item.content,
                                                 'img',
                                                 req='title')[0][0]['title']
                    name = re.findall('e\&quot;\&gt\;([^&]+)&', name)[0]
                    url = ('%s|SPLIT|%s|SPLIT|%s' % (name, url, iconimage))
                    display + 1
                    common.addLink(name, url, 711, iconimage, fanart)
                except:
                    pass
    if (lists and display >= 1):
        next = end + 1
        common.addDir('Load More...', str(next), 710, icon, fanart)
    else:
        common.addLink('No more results found!', 'None', 999, icon, fanart)
예제 #4
0
def MENU(url=None):

    if url == 'None': url = BASE
    r = common.open_url(url)
    s = dom_parser2.parse_dom(r, 'div', {'class': 'postbox'})

    for i in s:
        name = dom_parser2.parse_dom(
            i.content, 'a', req='title')[0][0]['title'].encode('utf-8')
        name = common.strip_tags(name)
        url = dom_parser2.parse_dom(i.content,
                                    'a')[0][0]['href'].encode('utf-8')
        iconimage = dom_parser2.parse_dom(i.content,
                                          'img')[0][0]['src'].encode('utf-8')
        url = ('%s|SPLIT|%s|SPLIT|%s' % (name, url, iconimage))
        common.addLink(name, url, 721, iconimage, fanart)

    try:
        np = dom_parser2.parse_dom(r, 'a',
                                   {'class': 'nextpostslink'})[0][0]['href']
        common.addDir('Load More...', str(np), 720, icon, fanart)
    except:
        common.addLink('No more results found!', 'None', 999, icon, fanart)
예제 #5
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('<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)')
예제 #6
0
파일: spankbang.py 프로젝트: moedje/naughty
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)')
예제 #7
0
파일: default.py 프로젝트: moedje/naughty
def GET_DOWNLOADS():

    download_location = plugintools.get_setting("download_location")
    download_folder = xbmc.translatePath(download_location)
    common.addLink('[COLOR deeppink]Download Location: [/COLOR]', BASE, 999,
                   icon, fanart)
    common.addLink(download_folder, BASE, 999, icon, fanart)
    common.addLink('[COLOR orangered]Change Download Location[/COLOR]', BASE,
                   106, icon, fanart)
    common.addLink('###########################################', BASE, 999,
                   icon, fanart)

    extensions = ['.mp4']

    for file in os.listdir(download_folder):
        for extension in extensions:
            if file.endswith(extension):
                iconimage = icon
                f = open(DOWNLOADS_FILE, mode='r')
                msg = f.read()
                f.close()
                msg = msg.replace('\n', '')
                match = re.compile('<item>(.+?)</item>').findall(msg)
                for item in match:
                    title = re.compile('<name>(.+?)</name>').findall(item)[0]
                    iconimage2 = re.compile('<icon>(.+?)</icon>').findall(
                        item)[0]
                    if file in title:
                        iconimage = iconimage2
                url = xbmc.translatePath(os.path.join(download_folder, file))
                if "http" in iconimage:
                    url2 = file + '|SPLIT|' + url + '|SPLIT|Downloaded|SPLIT|' + iconimage + '|SPLIT|' + url
                else:
                    url2 = file + '|SPLIT|' + url + '|SPLIT|Downloaded|SPLIT|None|SPLIT|' + url
                common.addLink('[COLOR pink]' + file + '[/COLOR]', url2, 107,
                               iconimage, fanart)
예제 #8
0
def GetMenu():

    history_on_off = plugintools.get_setting("history_setting")

    if not os.path.exists(PARENTAL_FILE):
        common.addDir(
            "[COLOR orangered]PARENTAL CONTROLS - [COLOR orangered]OFF[/COLOR][/COLOR]",
            "url", 900, icon, fanart)
    else:
        common.addDir(
            "[COLOR orangered]PARENTAL CONTROLS - [COLOR lime]ON[/COLOR][/COLOR]",
            "url", 900, icon, fanart)
    common.addDir("[COLOR white]Search...[/COLOR]", "url", 1, icon, fanart)
    common.addDir("[COLOR white]Live Cams & Channels[/COLOR]", "url", 3, icon,
                  fanart)
    common.addDir("[COLOR white]Films[/COLOR]", "url", 7, icon, fanart)
    common.addDir("[COLOR white]Videos[/COLOR]", "url", 2, icon, fanart)
    common.addDir("[COLOR white]Photos[/COLOR]", "url", 4, icon, fanart)
    common.addDir("[COLOR white]Stories[/COLOR]", "url", 5, icon, fanart)
    if history_on_off == "true":
        common.addDir(
            "[COLOR pink]Your History[/COLOR] - [COLOR lime]ON[/COLOR]", BASE,
            101, icon, fanart)
    else:
        common.addDir(
            "[COLOR pink]Your History[/COLOR] - [COLOR red]OFF[/COLOR]", BASE,
            101, icon, fanart)
    common.addDir("[COLOR pink]Your Favourites[/COLOR]", BASE, 102, icon,
                  fanart)
    common.addDir("[COLOR pink]Your Downloads[/COLOR]", BASE, 105, icon,
                  fanart)
    common.addLink("[COLOR pink]Your Settings[/COLOR]", BASE, 106, icon,
                   fanart)
    common.addLink("[COLOR white]View Disclaimer[/COLOR]", TERMS, 998, icon,
                   fanart)
    common.addLink("[COLOR white]View Addon Information[/COLOR]", INFO, 998,
                   icon, fanart)
    common.addLink("[COLOR orangered]RESET XXX-O-DUS[/COLOR]", 'url', 997,
                   icon, fanart)

    common.SET_VIEW('list')
예제 #9
0
파일: default.py 프로젝트: moedje/naughty
def GET_FAVOURITES():

    common.addLink('[COLOR deeppink]Your Favourites[/COLOR]', BASE, 999, icon,
                   fanart)
    common.addLink('###########################################', BASE, 999,
                   icon, fanart)

    f = open(FAVOURITES_FILE, mode='r')
    msg = f.read()
    f.close()
    msg = msg.replace('\n', '')
    match = re.compile('<item>(.+?)</item>').findall(msg)
    for item in match:
        title = re.compile('<name>(.+?)</name>').findall(item)[0]
        url = re.compile('<link>(.+?)</link>').findall(item)[0]
        site = re.compile('<site>(.+?)</site>').findall(item)[0]
        iconimage = re.compile('<icon>(.+?)</icon>').findall(item)[0]
        url = title + '|SPLIT|' + url + '|SPLIT|' + site + '|SPLIT|' + iconimage + '|SPLIT|' + url
        common.addLink(
            '[COLOR orangered]' + site + '[/COLOR][COLOR pink] - ' + title +
            '[/COLOR]', url, 103, iconimage, fanart)
예제 #10
0
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)')
예제 #11
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("'", '"')

    titlelist = []
    urllist = []
    iconlist = []
    combined = []

    titles = dom_parser.parse_dom(link, 'h1', ret='title')
    urls = dom_parser.parse_dom(link, 'h1', {'class': 'mtitle'})
    iconimages = dom_parser.parse_dom(link, 'div',
                                      {'class': 'thumb_container'})

    for item in titles:
        titlelist.append(item)
    for item in urls:
        url = dom_parser.parse_dom(item, 'a', ret='href')[0]
        urllist.append(url)
    for item in iconimages:
        try:
            iconimage = dom_parser.parse_dom(item, 'img', ret='src')[0]
            iconlist.append(iconimage)
        except:
            iconlist.append("null")

    combined = [
        a + '!SPLIT!' + b + '!SPLIT!' + c
        for a, b, c in zip(titlelist, urllist, iconlist)
    ]

    for item in combined[1:]:
        name, url, iconimage = item.split('!SPLIT!')
        url = urlparse.urljoin(BASE_LINK, url)
        name = common.replaceHTMLCodes(name)
        url = name + "|SPLIT|" + url + "|SPLIT|" + iconimage
        common.addLink("[COLOR white]" + name + "[/COLOR]", url, 283,
                       iconimage, fanart)

    if nextpage == 1:
        try:
            np = dom_parser.parse_dom(link,
                                      'link', {'rel': 'next'},
                                      ret='href')[0]
            common.addDir('[COLOR white]Next Page >>[/COLOR]', np, 281, icon,
                          fanart)
        except:
            pass

    common.SET_VIEW('thumbs')
예제 #12
0
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('&amp;', '&')
            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)')
예제 #13
0
파일: default.py 프로젝트: moedje/naughty
def GetMenu():

    if not os.path.exists(PARENTAL_FOLDER):
        choice = xbmcgui.Dialog().yesno(
            AddonTitle,
            "[COLOR white]Would you like to enable the parental controls now?[/COLOR]",
            "",
            yeslabel='[COLOR orangered]NO[/COLOR]',
            nolabel='[COLOR lime]YES[/COLOR]')
        if choice == 0:
            PARENTAL_CONTROLS_PIN()
        else:
            os.makedirs(PARENTAL_FOLDER)

    elif os.path.exists(PARENTAL_FILE):
        vq = common._get_keyboard(heading="Please Enter Your Password")
        if (not vq):
            dialog.ok(AddonTitle, "Sorry, no password was entered.")
            sys.exit(0)
        pass_one = vq

        vers = open(PARENTAL_FILE, "r")
        regex = re.compile(r'<password>(.+?)</password>')
        for line in vers:
            file = regex.findall(line)
            for current_pin in file:
                password = base64.b64decode(current_pin)
                if not password == pass_one:
                    if not current_pin == pass_one:
                        dialog.ok(
                            AddonTitle,
                            "Sorry, the password you entered was incorrect.")
                        sys.exit(0)

    a = open(GET_VERSION).read()
    b = a.replace('\n', ' ').replace('\r', ' ')
    match = re.compile(
        'name=".+?".+?version="(.+?)".+?provider-name=".+?">').findall(str(b))
    for item in match:
        addon_version = float(item)
    a = open(GET_REPO_VERSION).read()
    b = a.replace('\n', ' ').replace('\r', ' ')
    match = re.compile(
        'name=".+?".+?version="(.+?)".+?provider-name=".+?">').findall(str(b))
    for item in match:
        repo_version = float(item)

    common.addDir("[COLOR white]SEARCH XXX-O-DUS[/COLOR]", "url", 1, icon,
                  fanart)
    common.addDir("[COLOR white]Live[/COLOR]", "url", 3, icon, fanart)
    common.addDir("[COLOR white]Videos[/COLOR]", "url", 2, icon, fanart)
    common.addDir("[COLOR white]Photos[/COLOR]", "url", 4, icon, fanart)
    common.addDir("[COLOR white]Stories[/COLOR]", "url", 5, icon, fanart)
    common.addLink("[COLOR darkgray]#################################[/COLOR]",
                   "url", 999, icon, fanart)
    common.addDir("[COLOR deeppink]Your History[/COLOR]", BASE, 101, icon,
                  fanart)
    common.addDir("[COLOR deeppink]Your Favourites[/COLOR]", BASE, 102, icon,
                  fanart)
    common.addDir("[COLOR deeppink]Your Downloads[/COLOR]", BASE, 105, icon,
                  fanart)
    common.addLink("[COLOR deeppink]Your Settings[/COLOR]", BASE, 106, icon,
                   fanart)

    if not os.path.exists(PARENTAL_FILE):
        common.addDir(
            "[COLOR orangered]PARENTAL CONTROLS - [COLOR orangered]OFF[/COLOR][/COLOR]",
            "url", 900, icon, fanart)
    else:
        common.addDir(
            "[COLOR orangered]PARENTAL CONTROLS - [COLOR lime]ON[/COLOR][/COLOR]",
            "url", 900, icon, fanart)
    common.addLink(
        "[COLOR white]#####################################[/COLOR]", BASE,
        999, icon, fanart)
    common.addLink(
        "[COLOR pink]Twitter Support: [/COLOR][COLOR white]@EchoCoder[/COLOR]",
        BASE, 999, icon, fanart)
    common.addLink("[COLOR white]View Disclaimer[/COLOR]", TERMS, 998, icon,
                   fanart)
    common.addLink("[COLOR white]View Addon Information[/COLOR]", INFO, 998,
                   icon, fanart)
    common.addLink("[COLOR orangered]RESET XXX-O-DUS[/COLOR]", 'url', 997,
                   icon, fanart)
    common.addLink(
        "[COLOR deeppink]Addon Version:[/COLOR] [COLOR white]" +
        str(addon_version) + "[/COLOR]", 'url', 999, icon, fanart)
    common.addLink(
        "[COLOR deeppink]Repository Version:[/COLOR] [COLOR white]" +
        str(repo_version) + "[/COLOR]", 'url', 999, 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)')
예제 #14
0
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)')
예제 #15
0
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)')
예제 #16
0
def PARENTAL_CONTROLS():

    found = 0
    if not os.path.exists(PARENTAL_FILE):
        found = 1
        common.addLink(
            "[COLOR deeppink]PARENTAL CONTROLS - [/COLOR][COLOR orangered]OFF[/COLOR]",
            "url", 999, icon, fanart)
        common.addLink("[COLOR white]Setup Parental Password[/COLOR]", "url",
                       901, icon, fanart)
    else:
        found = 1
        common.addLink(
            "[COLOR deeppink]PARENTAL CONTROLS - [/COLOR][COLOR lime]ON[/COLOR]",
            "url", 999, icon, fanart)
        common.addLink("[COLOR lime]Change Password[/COLOR]", "url", 901, icon,
                       fanart)
        common.addLink("[COLOR orangered]Disable Password[/COLOR]", "url", 902,
                       icon, fanart)

    if found == 0:
        common.addLink(
            "[COLOR rose]PARENTAL CONTROLS - [/COLOR][COLOR orangered]OFF[/COLOR]",
            "url", 999, icon, fanart)
        common.addLink("[COLOR white]Setup Parental Password[/COLOR]", "url",
                       902, icon, fanart)
예제 #17
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('<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('&amp;', '&')
            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)')
예제 #18
0
파일: default.py 프로젝트: moedje/naughty
def PARENTAL_CONTROLS():

    found = 0
    if not os.path.exists(PARENTAL_FILE):
        found = 1
        common.addLink(
            "[COLOR deeppink]PARENTAL CONTROLS - [/COLOR][COLOR orangered]OFF[/COLOR]",
            "url", 999, icon, fanart)
        common.addLink("[COLOR white]Setup Parental Password[/COLOR]", "url",
                       901, icon, fanart)
    else:
        vers = open(PARENTAL_FILE, "r")
        regex = re.compile(r'<password>(.+?)</password>')
        for line in vers:
            file = regex.findall(line)
            for current_pin in file:
                password = base64.b64decode(current_pin)
                found = 1
                common.addLink(
                    "[COLOR deeppink]PARENTAL CONTROLS - [/COLOR][COLOR lime]ON[/COLOR]",
                    "url", 999, icon, fanart)
                common.addLink(
                    "[COLOR white]Current Password - [/COLOR][COLOR orangered]"
                    + str(password) + "[/COLOR]", "url", 999, icon, fanart)
                common.addLink("[COLOR lime]Change Password[/COLOR]", "url",
                               901, icon, fanart)
                common.addLink("[COLOR orangered]Disable Password[/COLOR]",
                               "url", 902, icon, fanart)

    if found == 0:
        common.addLink(
            "[COLOR rose]PARENTAL CONTROLS - [/COLOR][COLOR orangered]OFF[/COLOR]",
            "url", 999, icon, fanart)
        common.addLink("[COLOR white]Setup Parental Password[/COLOR]", "url",
                       902, icon, fanart)
예제 #19
0
파일: default.py 프로젝트: moedje/naughty
def GET_HISTORY():

    history_on_off = plugintools.get_setting("history_setting")

    setting = "history_setting|SPLIT|" + history_on_off

    if history_on_off == "true":
        common.addLink('[COLOR deeppink]Clear History[/COLOR]', BASE, 104,
                       icon, fanart)
        common.addLink('[COLOR orangered]Disable History[/COLOR]', setting,
                       109, icon, fanart)
        common.addLink('###########################################', BASE,
                       999, icon, fanart)

        f = open(HISTORY_FILE, mode='r')
        msg = f.read()
        f.close()
        msg = msg.replace('\n', '')
        match = re.compile('<item>(.+?)</item>').findall(msg)
        for item in match:
            date = re.compile('<date>(.+?)</date>').findall(item)[0]
            time = re.compile('<time>(.+?)</time>').findall(item)[0]
            title = re.compile('<name>(.+?)</name>').findall(item)[0]
            url = re.compile('<link>(.+?)</link>').findall(item)[0]
            site = re.compile('<site>(.+?)</site>').findall(item)[0]
            iconimage = re.compile('<icon>(.+?)</icon>').findall(item)[0]
            url = title + '|SPLIT|' + url + '|SPLIT|' + site + '|SPLIT|' + iconimage + '|SPLIT|' + url

            common.addLink(
                '[COLOR pink]' + date + ' | ' + '[/COLOR][COLOR deeppink]' +
                time + '[/COLOR] - [COLOR orangered]' + site +
                '[/COLOR][COLOR pink] - ' + title + '[/COLOR]', url, 800,
                iconimage, fanart)
    else:
        common.addLink('[COLOR orangered]Enable History Monitoring[/COLOR]',
                       setting, 109, icon, fanart)
        common.addLink('############################################', BASE,
                       999, icon, fanart)
        common.addLink(
            '[COLOR pink]History monitoring is currently disabled.[/COLOR]',
            setting, 109, icon, fanart)
예제 #20
0
파일: eporner.py 프로젝트: BrianG80/naughty
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', '')
        except:
            dialog.ok(AddonTitle,
                      "Error connecting to website. Please try again.")
            quit()
    else:
        link = common.open_url(url).replace('/n', '').replace("'", '"')

    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)')