def INDEX(url): types = None req = urllib2.Request(url) req.add_header( 'User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3' ) response = urllib2.urlopen(req) link = response.read() response.close() match = re.compile( '<a href="(.+?)" rel=".+?" title=".+?"> <img src="(.+?)" width=".+?" height=".+?" title="(.+?)" class=".+?"></a>' ).findall(link) np = re.compile("<span class='pages'>Page (.+?)</span>").findall(link) if len(np) > 0: numbers = np[0] head, sep, tail = numbers.partition('of') current_page = int(head) last_page = int(tail) nex = current_page + 1 if nex < last_page: if current_page == 1: next_page = url + '/page/' + str(nex) else: a, b, c = url.partition('/page/') next_page = url + a + b + str(nex) main.addDir('Next Page', next_page, 'newMyVideoLinksIndex', artwork + '/main/next.png') for url, thumbnail, name in match: show = re.split('[Ss]\d\d[Ee]\d\d', name) if len(show) == 2: types = 'episode' else: types = 'movie' if types == 'episode': try: main.addEDir(name, url, 'newMyVideoLinksVideoLinks', thumbnail, show[0]) except: continue if types == 'movie': try: main.addMDir(name, url, 'newMyVideoLinksVideoLinks', thumbnail, '', False) except: continue if types == 'episode': main.AUTOVIEW('episodes') else: main.AUTOVIEW('movies')
def INDEX(url): req = urllib2.Request(url) req.add_header( 'User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3' ) response = urllib2.urlopen(req) link = response.read() response.close() match = re.compile( '<a href=\'(.+?)\'>\r\n\t\t<img class=\'movie_img\' src=\'(.+?)\' alt=\'(.+?)\' />' ).findall(link) np = re.compile( 'class="pagination_next"><a class="pagination_link" href="(.+?)"></a></span>' ).findall(link) if len(np) > 0: np_url = np[0] next_page = base_url + np_url main.addDir('Next Page', next_page, 'fmaIndex', artwork + '/main/next.png') for url, thumbnail, name in match: url = base_url + url try: main.addMDir(name, url, 'fmaVideoLinks', thumbnail, '', False) except: continue main.AUTOVIEW('movies')
def EPISODES(url): link = net.http_GET(url).content match = re.compile( '<a href="(.+?)" rel="bookmark" title=".+?">(.+?)</a>').findall(link) np = re.compile( '<span class="prev"><a href="(.+?)" >Previous Posts</a>').findall(link) if len(np) > 0: if settings.getSetting('nextpagetop') == 'true': next_page = str(np[0]) main.addDir('[COLOR blue]Next Page[/COLOR]', next_page, 'channelCutEpisodes', artwork + 'main/next.png') for url, name in match: name = re.sub(' Episode ', 'x', name) show, sep, numbers = name.partition('Season') name = show + '' + numbers name = name.replace("’", "") try: main.addEDir(name, url, 'channelCutVideoLinks', '', show) except: continue if len(np) > 0: if settings.getSetting('nextpagebottom') == 'true': next_page = str(np[0]) main.addDir('[COLOR blue]Next Page[/COLOR]', next_page, 'channelCutEpisodes', artwork + 'main/next.png') main.AUTOVIEW('episodes')
def SERIES_INDEX(url): link = net.http_GET(url).content np=re.compile('<li class="next pagea"><a href="(.+?)">Next →</a>').findall(link) match=re.compile('<a href="(.+?)" class=".+?" rel=".+?">\r\n\t\t\t\t\t\t\t<img class=".+?" src="(.+?)" alt="">\r\n\t\t\t\t\t\t\t <div class=".+?">.+?</div>\t \r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t<div class=".+?">.+?').findall(link) if len(np) > 0: next_page = np[0] next_page = next_page.replace('&','&') next_page = next_page.replace('movies','tv-show') main.addDir('Next Page',next_page,'iwoSeriesIndex',artwork + '/main/next.png') for url,thumbnail in match: head,sep,tail = url.partition('/tv-shows/') head,sep,tail = url.partition('-') split = re.split('\d\d\d\d\d-',tail) try: name = str(split[1]) except: continue name = name.replace('-',' ') name = name.title() if name == 'Battlestar Galactica': name = 'Battlestar Galactica (2003)' try: main.addSDir(name,url,'iwoEpisodesIndex',thumbnail,False) except: continue main.AUTOVIEW('tvshows')
def INDEX(url): next_page = '' link = net.http_GET(url).content match = re.compile( '<a href=\'(.+?)\'>\r\n\t\t<img class=\'movie_img\' src=\'(.+?)\' alt=\'(.+?)\' />' ).findall(link) np = re.compile( 'class="pagination_next"><a class="pagination_link" href="(.+?)"></a></span>' ).findall(link) if len(np) > 0: np_url = np[0] next_page = base_url + np_url if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', next_page, 'fmaIndex', artwork + '/main/next.png') for url, thumbnail, name in match: url = base_url + url try: main.addMDir(name, url, 'fmaVideoLinks', thumbnail, '', False) except: continue if len(np) > 0: if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', next_page, 'fmaIndex', artwork + '/main/next.png') main.AUTOVIEW('movies')
def INDEX(url): print "eliinfo ################################################################# url" + url next_page = '' link = net.http_GET(url).content match = re.compile( '<a href="(.+?)" title="(.+?)"> <img src="(.+?)" alt=".+?" height=".+?" width=".+?"/></a>' ).findall(link) np = re.compile("..</span> <a class=.+? href='(.+?)'> Next+").findall(link) if len(np) > 0: next_page = np[0] if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', next_page, 'zmovieIndex', artwork + '/main/next.png') for url, name, thumbnail in match: head, sep, tail = name.partition(')') name = head[:-5] year = head[-5:] + sep try: main.addMDir(name, url, 'zmovieVideoLinks', thumbnail, year, False) except: continue if len(np) > 0: if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', next_page, 'zmovieIndex', artwork + '/main/next.png') main.AUTOVIEW('movies')
def INDEX(url): req = urllib2.Request(url) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') response = urllib2.urlopen(req) link=response.read() response.close() match=re.compile('<a href="(.+?)" target=".+?" onclick=".+?">\n <img class=".+?" src="(.+?)" alt=".+?" title="(.+?)" onmousemove=".+?" style=".+?"/>').findall(link) if url == base_url + '/movies.htm': main.addDir('Next Page',base_url + '/movies2.htm','moovieManiacIndex',artwork + '/main/next.png') elif url == base_url + '/movies2.htm': main.addDir('Next Page',base_url + '/movies3.htm','moovieManiacIndex',artwork + '/main/next.png') elif url == base_url + '/movies3.htm': main.addDir('Next Page',base_url + '/movies4.htm','moovieManiacIndex',artwork + '/main/next.png') for url,thumbnail,name in match: if len(match) > 0: thumbnail = base_url +'/' + thumbnail head, sep, tail = name.partition(')') name = head[:-5] year = head[-5:] + sep try: main.addMDir(name,url,'resolve',thumbnail,year,False) except: continue main.AUTOVIEW('movies')
def INDEX(url): req = urllib2.Request(url) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') response = urllib2.urlopen(req) link=response.read() response.close() match=re.compile('<a href=".+?" title=".+?">(.+?)</a></h1>\n\t\t\n\t\t\n\t</header>\n\n\t<div class=".+?">\n\t\t<a href="(.+?)"><img src="(.+?)" alt=".+?" width=".+?" height=".+?" class=".+?" /></a>').findall(link) np=re.compile('<strong>.+?</strong><a href="(.+?)">').findall(link) if len(np) > 0: next_page = np[0] main.addDir('Next Page',next_page,'videoCloudIndex',artwork + '/main/next.png') for name,url,thumbnail in match: if len(match) > 0: head, sep, tail = name.partition(')') name = head[:-5] year = head[-5:] + sep try: req = urllib2.Request(url) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') response = urllib2.urlopen(req) links=response.read() response.close() vid_link=re.compile('<source src="(.+?)"').findall(links) except: continue try: main.addMDir(name,vid_link[0],'resolve',thumbnail,year,False) except: continue main.AUTOVIEW('movies')
def INDEX(url): req = urllib2.Request(url) req.add_header( 'User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3' ) response = urllib2.urlopen(req) link = response.read() response.close() match = re.compile( '<a href="(.+?)" title="(.+?)"> <img src="(.+?)" alt=".+?" height=".+?" width=".+?"/></a>' ).findall(link) np = re.compile("..</span> <a class=.+? href='(.+?)'> Next+").findall(link) if len(np) > 0: next_page = np[0] main.addDir('Next Page', next_page, 'zmovieIndex', artwork + '/main/next.png') for url, name, thumbnail in match: head, sep, tail = name.partition(')') name = head[:-5] year = head[-5:] + sep try: main.addMDir(name, url, 'zmovieVideoLinks', thumbnail, year, False) except: continue main.AUTOVIEW('movies')
def MOVIE_INDEX(url): link = net.http_GET(url).content np=re.compile('<li class="next pagea"><a href="(.+?)">Next →</a>').findall(link) match=re.compile('<a href="(.+?)" class=".+?" rel=".+?">\r\n\t\t\t\t\t\t\t<img class=".+?" src="(.+?)" alt="">\r\n\t\t\t\t\t\t\t <div class=".+?">.+?</div>\t \r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t<div class=".+?">.+?').findall(link) if len(np) > 0: next_page = np[0] next_page = next_page.replace('&','&') main.addDir('Next Page',next_page,'iwoIndex',artwork + '/main/next.png') for url,thumbnail in match: head,sep,tail = url.partition('/movie/') head,sep,tail = url.partition('-') year = tail[-4:] year = '(' + year + ')' name = tail[:-4] name = re.sub('-s','s',name) name = re.sub('-',' ',name) name = re.sub("'",'',name) name = name.title() try: main.addMDir(name,url,'iwoVideoLinks',thumbnail,year,False) except: continue main.AUTOVIEW('movies')
def INDEX(url): req = urllib2.Request(url) req.add_header( 'User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3' ) response = urllib2.urlopen(req) link = response.read() response.close() match = re.compile( '<a\nhref="(.+?)" rel=".+?" > <img\nclass=".+?" src="(.+?)" width=".+?" height=".+?" title="Watch (.+?) Online Free" >' ).findall(link) np = re.compile("rel='next' href='(.+?)' /><link").findall(link) if len(np) > 0: next_page = np[0] main.addDir('Next Page', next_page, 'wwmfIndex', artwork + '/main/next.png') for url, thumbnail, name in match: try: main.addMDir(name, url, 'wwmfVideoLinks', thumbnail, '', False) print year except: continue main.AUTOVIEW('movies')
def INDEX(url): np_url = '' link = net.http_GET(url).content match = re.compile( '<a href="(.+?)" class="post-info-title" title="Permanent Link to (.+?)">' ).findall(link) np = re.compile("<a href=\'(.+?)' class=\'(.+?)\'>.+?</a>").findall(link) for np_url, name in np: if name == 'nextpostslink': if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', np_url, 'fullEpisodeIndex', artwork + '/main/next.png') for url, name in match: head, sep, tail = name.partition('Season') show = head numbers = tail.replace('Episode', 'x') numbers = numbers.replace(' ', '') name = show + numbers try: main.addEDir(name, url, 'fullEpisodeVideoLinks', '', show) except: continue for np_url, name in np: if name == 'nextpostslink': if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', np_url, 'fullEpisodeIndex', artwork + '/main/next.png') main.AUTOVIEW('episodes')
def INDEX(url): req = urllib2.Request(url) req.add_header( 'User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3' ) response = urllib2.urlopen(req) link = response.read() response.close() match = re.compile( '<a href="(.+?)"><img src="(.+?)" width=".+?" title=".+?" alt="(.+?)"></a>' ).findall(link) np = re.compile('<a href="/(.+?) " >').findall(link) if len(np) > 0: np_url = np[0] main.addDir('Next Page', np_url, 'freeOMovieIndex', artwork + '/main/next.png') inc = 0 if len(match) > 0: for url, thumbnail, name in match: inc += 1 if inc > 8: movie_name = name[:-6] year = name[-6:] movie_name = movie_name.decode('UTF-8', 'ignore') main.addMDir(movie_name, base_url + url, 'mmlineVideoLinks', base_url + thumbnail, year, False) main.AUTOVIEW('movies')
def EPISODES(url): req = urllib2.Request(url) req.add_header( 'User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3' ) response = urllib2.urlopen(req) link = response.read() response.close() match = re.compile( '<a href="(.+?)" rel="bookmark" title=".+?">(.+?)</a>').findall(link) np = re.compile( '<span class="prev"><a href="(.+?)" >Previous Posts</a>').findall(link) if len(np) > 0: next_page = str(np[0]) main.addDir('Next Page', next_page, 'channelCutEpisodes', artwork + 'main/next.png') for url, name in match: name = re.sub(' Episode ', 'x', name) show, sep, numbers = name.partition('Season') name = show + '' + numbers name = name.replace("’", "") try: main.addEDir(name, url, 'channelCutVideoLinks', '', show) except: continue main.AUTOVIEW('episodes')
def INDEX(url): np_url = '' link = net.http_GET(url).content match = re.compile( 'class="boxtitle">.+?<a href="(.+?)".+?title="(.+?)".+?<img src="(.+?)"', re.S).findall(link) np = re.compile("<link rel='next' href='(.+?)'").findall(link) if len(np) > 0: np_url = np[0] lastpage = re.compile('class="last" href=".+?/(\d+)/', re.S).findall(link) pageparse = re.search('http://www.freeomovie.com.*?/(\d+)/$', url) if pageparse: page = str(int(pageparse.group(1)) + 1) else: page = '2' if lastpage: lastpage = "/" + str(int(lastpage[-1])) else: lastpage = '' if settings.getSetting('nextpagetop') == 'true': main.addDir( '[COLOR blue]Next Page %s%s[/COLOR]' % (page, lastpage), np_url, 'freeOMovieIndex', artwork + '/main/next.png') for url, name, thumbnail in match: name = name.encode('UTF-8') try: main.addDir(name, url, 'freeOMovieVideoLinks', thumbnail) except: continue if len(np) > 0: if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', np_url, 'freeOMovieIndex', artwork + '/main/next.png') main.AUTOVIEW('movies')
def INDEX(url): link = net.http_GET(url).content match=re.compile('<a href="(.+?)" title="(.+?)"><img src="(.+?)" width="130" border=".+?" height=".+?" /></a>').findall(link) for url,name,thumbnail in match: url = base_url + url main.addSDir(name,url,'mode','',False) main.AUTOVIEW('tvshows')
def INDEXEPS(url, name): link = net.http_GET(url).content match = re.compile( '<a href="(.+?)" rel="(.+?)" title=".+?">(.+?)</a>').findall(link) for url, thumbnail, name in match: try: main.addEDir(name, url, 'gogoAnimeVideoLinks', '', '') except: continue main.AUTOVIEW('episodes')
def INDEXEPS(url, name): link = net.http_GET(url).content match = re.compile('<li>(.+?)<a href="(.+?)">').findall(link) for name, url in match: url = base_url + url try: main.addEDir(name, url, 'mode', '', '') except: continue main.AUTOVIEW('episodes')
def INDEX(url): if type(url) == str: if re.match("\('http", url): url = re.compile("\('(.*?)', (.*?\}), '(.*?)'").findall(url) post = eval(url[0][1]) url = (url[0][0], post) next_page = '' if type(url) == str: link = net.http_GET(url).content np = re.compile('pnext"><a href="(http://qwertty.net/.*?page/(\d+))/">' ).findall(link) lastpage = re.compile( '<a href="http://qwertty.net/.*?page/\d+/">(\d+)<', re.S).findall(link) else: link = net.http_POST(url[0], url[1]).content np = re.compile('pnext">.*? href="(#)">(.+?)<').findall(link) lastpage = re.compile(' href="#">(\d+)<', re.S).findall(link) match = re.compile( 'class="movie-img.*?<img src="(.+?)"\salt="(.+?)".*?data-link="(.*?)"', re.S).findall(link) if len(np) > 0: if type(url) == str: page = np[0][1] next_page = np[0][0] else: page = int(url[1]['search_start']) + 1 next_page = (base_url, { 'do': 'search', 'subaction': 'search', 'story': url[1]['story'], 'search_start': str(page), 'result_from': str(int(url[1]['result_from']) + 12) }, url[1]['story']) if settings.getSetting('nextpagetop') == 'true': main.addDir( '[COLOR blue]Next Page %s/%s[/COLOR]' % (str(page), str(lastpage[-1])), next_page, 'qwerttyIndex', artwork + '/main/next.png') for thumbnail, name, urllink in match: try: if not re.match("http.+?", thumbnail): thumbnail = base_url + thumbnail main.addDir(name, urllink, 'qwerttyVideoLinks', thumbnail) except: continue if len(np) > 0: if settings.getSetting('nextpagebottom') == 'true': if next_page != '': main.addDir('[COLOR blue]Next Page[/COLOR]', next_page, 'qwerttyIndex', artwork + '/main/next.png') main.AUTOVIEW('movies')
def RECENTEPISODES(url): link = net.http_GET(url).content match = re.compile('<a href="(.+?)">(.+?)</a> </li>').findall(link) for url, name in match: name = re.sub(' Episode ', 'x', name) show, sep, numbers = name.partition('Season') name = show + '' + numbers name = name.replace("’", "") try: main.addEDir(name, url, 'channelCutVideoLinks', '', show) except: continue main.AUTOVIEW('episodes')
def A(url): link = net.http_GET(url).content match = re.compile( '<a href="http://www.gogoanime.com/category/(.+?)" title=".+?">(.+?)</a>' ).findall(link) for url, name in match: url = base_url + '/category/' + url if name[0] == 'A': try: main.addAnimeDir(name, url, 'gogoAnimeEpisodes', '', False) except: continue main.AUTOVIEW('tvshows')
def NUM(url): link = net.http_GET(url).content match = re.compile( '<a href="http://www.gogoanime.com/category/(.+?)" title=".+?">(.+?)</a>' ).findall(link) for url, name in match: url = base_url + '/category/' + url chars = set('0123456789$.') if any((c in chars) for c in name[0]): try: main.addAnimeDir(name, url, 'gogoAnimeEpisodes', '', False) except: continue main.AUTOVIEW('tvshows')
def B(): url = base_url link = net.http_GET(url).content match = re.compile( '<option class=".+?" value=".+?">(.+?)</option>').findall(link) for name in match: name = re.sub(' ', '-', name) url = base_url + '/category/' + name name = re.sub('-', ' ', name) if str(name[0]) == 'B': try: main.addSDir(name, url, 'channelCutEpisodes', '', False) except: continue main.AUTOVIEW('tvshows')
def INDEX(url): next_page = '' if re.match(".*?/s/", url): issearch = True else: issearch = False link = net.http_GET(url).content match = re.compile( '<div class="video-item".+?<a href="(.+?)".+?<img src="(.+?)".*?alt="(.+?)".+?fa-clock-o"></i>\s(.+?)<', re.S).findall(link) lastpage = re.compile('>(\d+)</a></li>', re.S).findall(link) np = re.compile('class="pagination">.+?class="next"><a href="(.+?)"', re.S).findall(link) if issearch: if '?length=long' in url: pass else: main.addDir('[COLOR blue]filter >20min[/COLOR]', url, 'spankbangFilter', artwork + '/main/filter.png') if len(np) > 0: next_page = base_url + np[0] pageparse = re.search('http://spankbang.com/.*?/(\d+)/', url) if pageparse: page = str(int(pageparse.group(1)) + 1) else: page = '2' if lastpage: lastpage = "/" + str(lastpage[-1]) else: lastpage = '' if settings.getSetting('nextpagetop') == 'true': main.addDir( '[COLOR blue]Next Page %s%s[/COLOR]' % (page, lastpage), next_page, 'spankbangIndex', artwork + '/main/next.png') if match: for url, thumbnail, name, lenght in match: name = name.encode('utf-8') + " " + str(lenght) + "min" url = base_url + url thumbnail = "http:" + thumbnail try: main.addDir(name, url, 'spankbangVideoLinks', thumbnail) except: continue if len(np) > 0: if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page %s [/COLOR]' % page, next_page, 'spankbangIndex', artwork + '/main/next.png') main.AUTOVIEW('movies')
def EPISODES_INDEX(url, name): show = name link = net.http_GET(url).content match = re.compile( '<a href="(.+?)"><i class="icon-play-circle"></i>.+?</a></td>\r\n\t\t\t\t\t\t\t <td>(.+?)</td>\r\n\t\t\t\t\t\t\t <td><div class="pull-right"><div class="star" data-rating=".+?">' ).findall(link) for url, name in match: s, e = main.GET_EPISODE_NUMBERS(url) s = 'S' + s e = 'E' + e se = s + e name = name + ' ' + se try: main.addEDir(name, url, 'iwoVideoLinks', '', show) except: continue main.AUTOVIEW('episodes')
def RECENTEPS(url): link = net.http_GET(url).content match = re.compile('<a href="(.+?)">(.+?)</a>').findall(link) inc = 0 for url, name in match: inc += 1 if inc > 25: if name == 'TV': continue else: show = re.split('[Ss]\d\d[Ee]\d\d', name) try: main.addEDir(name, url, 'watchSeriesOnlineVideoLinks', '', show[0]) except: continue main.AUTOVIEW('episodes')
def MASTERSEARCH(search): postString = {'a': "2", 'query': search} headers = {'User-agent': 'Mozilla/5.0'} url = base_url + '/publ' html = net.http_POST(url, form_data=postString, headers=headers).content match = re.compile( '<div class="ImgWrapNews"><a href="(.*?)".*?(http://www.szene-streams.com/publ/.*?)">(.*?)<', re.S).findall(html) if match: for thumbnail, url, name in match: name = name.encode('utf-8') url = 'http://szene-streams.com' + url try: main.addDir(name, url, 'szenestreamsVideoLinks', thumbnail) except: continue main.AUTOVIEW('movies')
def SERIESINDEX(url): next_page = '' if re.match("http", url): issearch = False else: issearch = True if issearch: urlparts = url.split('#') search_start = urlparts[1] result_from = str(int(urlparts[1]) * 10 + 1) dataPost = { 'do': 'search', 'subaction': 'search', 'story': urlparts[0], 'search_start': search_start, 'result_from': result_from } link = net.http_POST(base_url + '/index.php', dataPost).content else: link = net.http_GET(url).content match = re.compile( '<div class="boxgrid2 caption2">\n<a href="(.+?.html)">\n<img class="images3" src="(.+?)".*?<div class="boxgridtext">\n(.+?)\n</div>', re.S).findall(link) parse = re.compile('<div class="pagenavigation ">(.+?)>Weiter', re.S).search(link) if parse: np = re.compile('<a href="(.+?)"', re.S).findall(parse.group(1)) next_page = np[-1] if len(np) > 0: if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', next_page, 'mykinoSeriesIndex', artwork + '/main/next.png') if match: for url, thumbnail, name in match: name = name.encode('utf-8') try: main.addDir(name, url, 'mykinoSeriesSeason', thumbnail) except: continue if len(np) > 0: if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', next_page, 'mykinoSeriesIndex', artwork + '/main/next.png') main.AUTOVIEW('tvshows')
def INDEX(url): next_page = '' if re.match(".*?search", url): issearch = True else: issearch = False link = net.http_GET(url).content parse = re.search('class="row new-collect(.+?)class="pagination', link, re.S) match = re.compile( 'bci(-title|)-link" href="(.+?)".+?bci-title">(.+?)<.+?img["]? src="(.+?)"', re.S).findall(parse.group(1)) pagination = re.compile('class="pagination(.+?)</div>', re.S).findall(link) lastpage = re.compile('.*page=(\d+)">', re.S).findall(pagination[0]) np = re.compile('page\sactive.+?<li class="page"><a href=".+?page=(.+?)">', re.S).findall(pagination[0]) if len(np) > 0: ispage = re.compile('(.+?page=)\d').findall(url) if ispage: next_page = ispage[0] + str(np[0]) else: next_page = url + "?page=" + str(np[0]) if issearch: next_page = next_page.replace("?page", "&page") if settings.getSetting('nextpagetop') == 'true': main.addDir( '[COLOR blue]Next Page %s/%s[/COLOR]' % (str(np[0]), str(lastpage[0])), next_page, 'paradisehillIndex', artwork + '/main/next.png') if match: for x, url, name, thumbnail in match: name = name.encode('utf-8') url = base_url + url thumbnail = "http://en.paradisehill.cc" + thumbnail try: main.addDir(name, url, 'paradisehillVideoLinks', thumbnail) except: continue if len(np) > 0: if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', next_page, 'paradisehillIndex', artwork + '/main/next.png') main.AUTOVIEW('movies')
def INDEX(url): next_page = '' np = {} link = net.http_GET(url).content match = re.compile( "<a href=[\"|'][^\s]+?-(\d+).html[\"|']\stitle=[\"|'](.*?)[-|\"|'].+?<img src=[\"|'](.*?)[\"|'].*?<p>\d+</p>", re.S).findall(link) parse = re.compile('class=\'pagination\'>(.+?)</div></div>', re.S).search(link) if parse: np = re.compile('<a href="([^<]+?per_page=(\d+))">Next').findall( parse.group(1)) if np: if re.match('http.*', np[0][0]): next_page = np[0][0].replace("&", "&") else: next_page = base_url + "/" + np[0][0].replace("&", "&") page = str(int(np[0][1]) / 20 + 1) lp = re.compile('=(\d+)">Last').findall(parse.group(1)) if not lp: lp = re.compile('per_page=(\d+)">\d').findall(parse.group(1)) if lp: lastpage = "/" + str(int(lp[-1]) / 20 + 1) else: lastpage = "" if len(np) > 0: if settings.getSetting('nextpagetop') == 'true': main.addDir( '[COLOR blue]Next Page %s%s[/COLOR]' % (page, lastpage), next_page, 'video2kIndex', artwork + '/main/next.png') if match: for url, name, thumbnail in match: url = URL_Hoster % url try: main.addDir(name, url, 'video2kVideoLinks', thumbnail) except: continue if len(np) > 0: if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', next_page, 'video2kIndex', artwork + '/main/next.png') main.AUTOVIEW('movies')