',
re.IGNORECASE | re.DOTALL).findall(listhtml)
#match3 = re.compile('
\n.+?
\n.+?
\n.+?([^"]+)\n.+?
',
re.IGNORECASE | re.DOTALL).findall(listhtml)
for imdb, title, thumbnail, season, episode, premiered in match:
tvshowtitle = re.compile(
'
\n(.+?)',
re.DOTALL | re.IGNORECASE).findall(listhtml)[0]
summery=re.compile(
'
(.+?)
',
re.DOTALL | re.IGNORECASE).findall(listhtml)[0]
thumbnail = thumbnail.replace("@._V1_UX200_CR0,0,200,112_AL_.jpg","@._V1_UX600_CR0,0,600,400_AL_.jpg")
if int(season) > 0 and int(season) < 10:
mySeason = "0" + str(season)
else:
mySeason = str(season)
if int(episode) > 0 and int(episode) < 10:
myEpisode = "0" + str(episode)
else:
myEpisode = str(episode)
if not COLOR1 == "" and not COLOR2 == "":
name = "[COLOR %s]S%sE%s[/COLOR] - [COLOR %s]%s[/COLOR]" % (COLOR2, mySeason, myEpisode, COLOR1, title)
else:
name = "S%sE%s - %s" % (mySeason, myEpisode, title)
aa=addDir3(name,'www',15,thumbnail,thumbnail,summery,original_title=tvshowtitle,season=season,episode=episode,id=o_imdb)
all_d.append(aa)
elif 'charttv' in id:
id = id.replace("charttv/","chart/")
id = 'http://www.imdb.com/' + id
log.warning(id)
listhtml = get_html(id).content()
match = re.compile(
'
\n.+?\n.+?\n.+?\n.+?(.+?)\n.+?(.+?)',
re.IGNORECASE | re.DOTALL).findall(listhtml)
for imdb, thumbnail, title, year in match:
name = title + " " + year
year = year.replace("(","").replace(")","")
thumbnail = thumbnail.replace("@._V1_UY67_CR0,0,45,67_AL_.jpg","@._V1_UX520_CR0,0,520,700_AL_.jpg")
if not COLOR1 == "":
name = "[COLOR %s]%s[/COLOR]" % (COLOR1, name)
aa=addDir3(name,'imdburl',193,thumbnail,thumbnail,' ',id='season/%s'%imdb)
all_d.append(aa)
elif 'genres/' in id:
id=id.replace('genres/$$$$$','')
id = id.replace("genres/","")
id = 'http://www.imdb.com/search/title?genres=' +id + '&explore=title_type,genres&title_type=tvMovie&ref_=adv_explore_rhs'
listhtml = get_html(id).content()
match = re.compile(
' \n.+?\n.+?\n \n.+?\n |