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 INDEX(url): np_url = '' types = None last_page = 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("<td width=\'60%\' style=\'text-align:left; font-size:12px;font-weight:bold;\'><a href=\'(.+?)'>(.+?)</a></td").findall(link) lp=re.compile("<span class='zmg_pn_standar'><a href=.+?>(.+?)</a>").findall(link) if len(lp) > 0: last_page = int(lp[11]) current_url = response.geturl() head,sep,tail = current_url.partition('page=') a,b,c = tail.partition('&cat=') cur_page = int(a) next_page = cur_page + 1 np_url = head + sep + str(next_page) + b + c if cur_page < last_page: if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',np_url,'tvreleaseIndex',artwork + '/main/next.png') for url,name in match: try: if 'Filech' in name: continue else: url = base_url + '/' + url 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,'tvreleaseVideoLinks','',show[0]) except: continue if types == 'movie': try: main.addMDir(name,url,'tvreleaseVideoLinks','','',False) except: continue except: continue if types == 'episode': main.AUTOVIEW('episodes') else: main.AUTOVIEW('movies') if cur_page < last_page: if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',np_url,'tvreleaseIndex',artwork + '/main/next.png')
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 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 = base_url + "/" + str(np[0]) main.addDir("Next Page", np_url, "mmlineIndex", 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 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 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 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 MOVIE_INDEX(url): next_page = '' 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('&','&') if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',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 if len(np) > 0: if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',next_page,'iwoIndex',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 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): link = net.http_GET(url).content 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 = base_url + '/' + str(np[0]) if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',np_url,'mmlineIndex',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:] try: main.addMDir(movie_name,base_url + url,'mmlineVideoLinks',base_url+thumbnail,year,False) except: pass if len(np) > 0: if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',np_url,'mmlineIndex',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\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): 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): 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): 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="(.+?)"><b><font size=".+?">(.+?)</font></b></a>').findall(link) np=re.compile("<span class='zmg_pn_current'>(.+?)</span>").findall(link) np_url = None cur_page = None if len(np) > 0: cur_page = np[0] cur_page = int(cur_page) next_page = int(cur_page) + 1 if cur_page == 1: np_url = url + '/page/' + str(next_page) else: head,sep,tail = url.partition('/page/') np_url = head + sep + str(next_page) if '&cat' in url: head,sep,tail = url.partition('?s') np_url = base_url + '/page/' + str(next_page) +'/' + sep + tail main.addDir('Next Page',np_url,'tvreleaseIndex',artwork + '/main/next.png') for url,name in match: try: if 'Filech' in name: continue else: 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,'tvreleaseVideoLinks','',show[0]) except: continue if types == 'movie': try: main.addMDir(name,url,'tvreleaseVideoLinks','','',False) except: continue except: continue if types == 'episode': main.AUTOVIEW('episodes') else: main.AUTOVIEW('movies')
def INDEX(url): types = None link = net.http_GET(url).content match=re.compile('<a href="(.+?)" rel=".+?" title=".+?"> <img src="(.+?)" title="(.+?)" class="alignleft" alt=".+?" /></a>').findall(link) np=re.compile("<span class='pages'>Page (.+?)</span>").findall(link) if len(np) > 0: next_page = '' 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) if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',next_page,'newMyVideoLinksIndex',artwork + '/main/next.png') for url,thumbnail,name in match: if '<img src=' in name: continue else: 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': split = re.split('(\d\d\d\d)',name) try: year = str(split[1]) except: pass try: main.addMDir(name,url,'newMyVideoLinksVideoLinks',thumbnail,year,False) except: continue if len(np) > 0: if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',next_page,'newMyVideoLinksIndex',artwork + '/main/next.png') if types == 'episode': main.AUTOVIEW('episodes') else: main.AUTOVIEW('movies')
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 MOVIEINDEX(url): link = net.http_GET(url).content match=re.compile('<a href="(.+?)" class=".+?"><img data-src=".+?" src="(.+?)" class="primary"/><span class="play"></span><span class=".+?">(.+?)</span>').findall(link) np=re.compile('<a class="pagination-next btn btn-inverse" href="(.+?)">').findall(link) if len(np) > 0: np_url = np[0] next_page = base_url + np_url next_page = next_page.replace('&','&') main.addDir('Next Page',next_page,'cartoonFreakMovieIndex',artwork + '/main/next.png') for url,thumbnail,name in match: try: main.addMDir(name,url,'cartoonFreakMovieEpisodes',thumbnail,'',False) except: continue main.AUTOVIEW('movies')
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\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): 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 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 INDEX(url): link = net.http_GET(url).content 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] if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',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 if len(np) > 0: next_page = np[0] if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',next_page,'wwmfIndex',artwork + '/main/next.png') main.AUTOVIEW('movies')
def index(url): link = net.http_GET(url).content match=re.compile('<img src="(.+?)" alt="" title="" class="imagecache imagecache-movie_thumb" width=".+?" height=".+?" /></a></span>\n </div>\n \n <div class="views-field-title">\n <span class="field-content"><a href="(.+?)">(.+?)</a></span>').findall(link) pages=re.compile('<li class="pager-next"><a href="(.+?)" title="Go to next page"').findall(link) np_url = '' if len(pages) > 0: np_url = base_url + str(pages[0]) if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',np_url,'bMoviesIndex', artwork + '/main/next.png') for thumbnail,url,name in match: url = base_url + url try: main.addMDir(name,url,'bMoviesVideoLinks',thumbnail,'',False) except: pass if len(pages) > 0: if settings.getSetting('nextpagebottom') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',np_url,'bMoviesIndex', artwork + '/main/next.png') main.AUTOVIEW('movies')
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): 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="(.+?)"><b><font size=".+?">(.+?)</font></b></a>').findall( link) np = re.compile("<span class='zmg_pn_current'>(.+?)</span>").findall(link) np_url = None cur_page = None if len(np) > 0: cur_page = np[0] cur_page = int(cur_page) next_page = int(cur_page) + 1 if cur_page == 1: np_url = url + '/page/' + str(next_page) else: head, sep, tail = url.partition('/page/') np_url = head + sep + str(next_page) if '&cat' in url: head, sep, tail = url.partition('?s') np_url = base_url + '/page/' + str(next_page) + '/' + sep + tail main.addDir('Next Page', np_url, 'tvreleaseIndex', artwork + '/main/next.png') for url, name in match: try: if 'Filech' in name: continue else: 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, 'tvreleaseVideoLinks', '', show[0]) except: continue if types == 'movie': try: main.addMDir(name, url, 'tvreleaseVideoLinks', '', '', False) except: continue except: continue if types == 'episode': main.AUTOVIEW('episodes') else: main.AUTOVIEW('movies')