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)
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)
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)
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)