Ejemplo n.º 1
0
def INDEX(url):
        o_url = 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:
                if settings.getSetting('nextpagetop') == 'true':
                        np_url = np[0]
                        next_page = base_url + np_url
                        next_page = next_page.replace('&#038;','&')
                        main.addDir('[COLOR blue]Next Page[/COLOR]',next_page,'cartoonFreakIndex',artwork + '/main/next.png')
        for url,thumbnail,name in match:
                if 'anime' in o_url:       
                        try:
                                main.addAnimeDir(name,url,'cartoonFreakAnimeEpisodes',thumbnail,False)
                        except:
                                continue
                else:  
                        try:
                                main.addToonDir(name,url,'cartoonFreakEpisodes',thumbnail,False)
                        except:
                                continue
        if len(np) > 0:
                if settings.getSetting('nextpagebottom') == 'true':
                        np_url = np[0]
                        next_page = base_url + np_url
                        next_page = next_page.replace('&#038;','&')
                        main.addDir('[COLOR blue]Next Page[/COLOR]',next_page,'cartoonFreakIndex',artwork + '/main/next.png')
 
                
        main.AUTOVIEW('tvshows')
Ejemplo n.º 2
0
def D(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] == 'D':
                        try:
                                main.addAnimeDir(name, url,'gogoAnimeEpisodes','',False)
                        except:
                                continue
        main.AUTOVIEW('tvshows')
Ejemplo n.º 3
0
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')
Ejemplo n.º 4
0
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')
Ejemplo n.º 5
0
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')
Ejemplo n.º 6
0
def RECENTINDEX(url):
        link = net.http_GET(url).content
        np=re.compile('<span class="current">.+?</span><a href="(.+?)" class=".+?" title=".+?">.+?</a>').findall(link)
        match=re.compile('<a href="(.+?)" title="(.+?)" ><img src="(.+?)" width=".+?" height=".+?" /></a>').findall(link)
        if len(np) > 0:
                next_page = np[0]
                main.addDir('Next Page',next_page,'gogoAnimeRecentIndex',artwork + '/main/next.png')
        for url, name, thumbnail in match:
                if "<span>" not in name:
                        url = base_url + '/category/' +  url
                        try:
                                main.addAnimeDir(name,url,'gogoAnimeEpisodes',thumbnail,False)
                        except:
                                continue
        main.AUTOVIEW('tvshows')
Ejemplo n.º 7
0
def RECENTINDEX(url):
    link = net.http_GET(url).content
    np = re.compile(
        '<span class="current">.+?</span><a href="(.+?)" class=".+?" title=".+?">.+?</a>'
    ).findall(link)
    match = re.compile(
        '<a href="(.+?)" title="(.+?)" ><img src="(.+?)" width=".+?" height=".+?" /></a>'
    ).findall(link)
    if len(np) > 0:
        next_page = np[0]
        main.addDir('Next Page', next_page, 'gogoAnimeRecentIndex',
                    artwork + '/main/next.png')
    for url, name, thumbnail in match:
        if "<span>" not in name:
            url = base_url + '/category/' + url
            try:
                main.addAnimeDir(name, url, 'gogoAnimeEpisodes', thumbnail,
                                 False)
            except:
                continue
    main.AUTOVIEW('tvshows')