Exemple #1
0
def Seasons(url,name):
        link=main.OPEN_URL(url)
        link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','')
        match=re.compile('<h2>Season ([^"]*)</h2>').findall(link)
        #match.sort() # sort list so it shows season one first
        #match = f7(match)
        for season in match:
                #main.addDir("Season "+season,url,13,'','')
                main.addDirG('[COLOR blue]'+'SEASON '+season+'[/COLOR]',url,23,'',season=season)
Exemple #2
0
def Seasons(url,name):
        req = urllib2.Request(url)
        req.add_header('User-Agent', USER_AGENT)
        response = urllib2.urlopen(req)
        link=response.read()
        response.close()
        match=re.compile('<h2>Season ([^"]*)</h2>').findall(link)
        #match.sort() # sort list so it shows season one first
        #match = f7(match)
        for season in match:
                #main.addDir("Season "+season,url,13,'','')
                main.addDirG('[COLOR blue]'+'SEASON '+season+'[/COLOR]',url,13,'',season=season)
Exemple #3
0
def Seasons(url, name):
    link = main.OPEN_URL(url)
    link = link.replace('\r',
                        '').replace('\n',
                                    '').replace('\t',
                                                '').replace('&nbsp;', '')
    match = re.compile('<h2>Season ([^"]*)</h2>').findall(link)
    #match.sort() # sort list so it shows season one first
    #match = f7(match)
    for season in match:
        #main.addDir("Season "+season,url,13,'','')
        main.addDirG('[COLOR blue]' + 'SEASON ' + season + '[/COLOR]',
                     url,
                     23,
                     '',
                     season=season)
Exemple #4
0
def Seasons(url, name):
    req = urllib2.Request(url)
    req.add_header('User-Agent', USER_AGENT)
    response = urllib2.urlopen(req)
    link = response.read()
    response.close()
    match = re.compile('<h2>Season ([^"]*)</h2>').findall(link)
    #match.sort() # sort list so it shows season one first
    #match = f7(match)
    for season in match:
        #main.addDir("Season "+season,url,13,'','')
        main.addDirG('[COLOR blue]' + 'SEASON ' + season + '[/COLOR]',
                     url,
                     13,
                     '',
                     season=season)