def INDEXEPS(url,name): np_url = '' thumb = '' show_name = name link = net.http_GET(url).content match=re.compile('<a href="(.+?)" rel=".+?" title=".+?">\n(.+?)\n</a>').findall(link) np=re.compile('</a></li><li><a href="(.+?)" class="next">').findall(link) if show_name == 'Next Page': real_show=re.compile('Episodes Available for: ‘(.+?)’').findall(link) if len(real_show) > 0: show_name = real_show[0] if len(np) > 0: np_url = np[0] if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',np_url,'watchSeriesOnlineEpisodesIndex',artwork + '/main/next.png') for url,name in match: name = re.sub('×','X',name) try: main.addEDir(name,url,'watchSeriesOnlineVideoLinks',thumb,show_name) except: continue if len(np) > 0: if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]',np_url,'watchSeriesOnlineEpisodesIndex',artwork + '/main/next.png') main.AUTOVIEW('episodes')
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 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 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 = '' 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): 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): 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 ANIMEEPISODES(url,thumb): link = net.http_GET(url).content match=re.compile('<li class=".+?"><a href="(.+?)"><i class="icon-chevron-right"></i>(.+?)</a></li>').findall(link) for url, name in match: try: main.addEDir(name,url,'cartoonFreakVideoLinks',thumb,'') except: continue main.AUTOVIEW('episodes')
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 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 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 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 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 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 EPISODES(url): link = net.http_GET(url).content match=re.compile('<li class=".+?"><a href="(.+?)"><i class="icon-chevron-right"></i>(.+?)</a></li>').findall(link) for url, name in match: if 'Season' in name: name = re.sub(' Episode ','x',name) show,sep,numbers = name.partition('Season') name = show + '' + numbers try: main.addEDir(name,url,'cartoonFreakVideoLinks','',show) except: continue main.AUTOVIEW('episodes')
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 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 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 RECENTEPISODES(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="(.+?)">(.+?)</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 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 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 RECENTEPISODES(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="(.+?)">(.+?)</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 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 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 INDEXEPS(url, name): np_url = '' thumb = '' show_name = name link = net.http_GET(url).content match = re.compile( '<a href="(.+?)" rel=".+?" title=".+?">\n(.+?)\n</a>').findall(link) np = re.compile('</a></li><li><a href="(.+?)" class="next">').findall(link) if show_name == 'Next Page': real_show = re.compile( 'Episodes Available for: ‘(.+?)’').findall(link) if len(real_show) > 0: show_name = real_show[0] if len(np) > 0: np_url = np[0] if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', np_url, 'watchSeriesOnlineEpisodesIndex', artwork + '/main/next.png') for url, name in match: name = re.sub('×', 'X', name) try: main.addEDir(name, url, 'watchSeriesOnlineVideoLinks', thumb, show_name) except: continue if len(np) > 0: if settings.getSetting('nextpagetop') == 'true': main.addDir('[COLOR blue]Next Page[/COLOR]', np_url, 'watchSeriesOnlineEpisodesIndex', artwork + '/main/next.png') main.AUTOVIEW('episodes')
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')