\n(.+?)',
re.DOTALL | re.IGNORECASE).findall(listhtml)[0]
Year = 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)
xml += "- "\
"
%s "\
""\
"episode "\
"%s "\
" "\
"%s "\
"%s "\
"%s "\
"%s "\
"%s "\
"%s "\
""\
""\
"search "\
"searchsd "\
""\
"%s "\
" "\
" " % (name, imdb, tvshowtitle, Year, title, premiered, season, episode, thumbnail)
jenlist = JenList(xml)
display_list(jenlist.get_list(), jenlist.get_content_type(), pins)
@route(mode='imdbepisodeTwo', args=["url"])
def imdbepisodeTwo(url):
pins = ""
xml = ""
url = url.replace("theepisodeTwo/","")
listhtml = getHtml(url)
match = re.compile(
'',
re.IGNORECASE | re.DOTALL).findall(listhtml)
for imdb, season, episode in match:
tvshowtitle = re.compile(
'\n(.+?)',
re.DOTALL | re.IGNORECASE).findall(listhtml)[0]
Year = re.compile(
'',
re.DOTALL | re.IGNORECASE).findall(listhtml)[0]
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)
xml += "- "\
"
%s "\
""\
"episode "\
"%s "\
" "\
"%s "\
"%s "\
" "\
" "\
"%s "\
"%s "\
""\
""\
"search "\
"searchsd "\
""\
"https://image.ibb.co/ew7xZG/not_Aired_Yet.png "\
" "\
" " % (name, imdb, tvshowtitle, Year, season, episode)
jenlist = JenList(xml)
display_list(jenlist.get_list(), jenlist.get_content_type(), pins)
@route(mode='imdblists', args=["url"])
def imdblists(url):
pins = ""
xml = ""
link = 'http://www.imdb.com/' + url
listhtml = getHtml(link)
match = re.compile(
'
\n
.+?
\n.+?.+?\n.+?\n.+?(.+?)\n.+?(.+?)',
re.IGNORECASE | re.DOTALL).findall(listhtml)
for thumbnail, imdb, title, year in match:
name = title + " " + year
year = year.replace("(","").replace(")","")
thumbnail = thumbnail.replace("@._V1_UY209_CR3,0,140,209_AL_.jpg","@._V1_UX520_CR0,0,520,700_AL_.jpg")
if not COLOR1 == "":
name = "[COLOR %s]%s[/COLOR]" % (COLOR1, name)
xml += "- "\
"
%s "\
""\
"movie "\
"%s "\
"%s "\
"%s "\
""\
""\
"search "\
"searchsd "\
""\
"%s "\
" "\
" " % (name, imdb, title, year, thumbnail)
jenlist = JenList(xml)
display_list(jenlist.get_list(), jenlist.get_content_type(), pins)
@route(mode='imdbyears', args=["url"])
def imdbyears(url):
pins = ""
xml = ""
url = url.replace("years/","")
url = 'http://www.imdb.com/search/title?year=' + url + '&title_type=feature'
listhtml = getHtml(url)
match = re.compile(
'
\n.+?
\n.+?.+?\n.+?\n.+?(.+?)\n.+?(.+?)',
re.IGNORECASE | re.DOTALL).findall(listhtml)
for thumbnail, imdb, title, year in match:
name = title + " " + year
year = year.replace("(","").replace(")","")
thumbnail = thumbnail.replace("@._V1_UX67_CR0,0,67,98_AL_.jpg","@._V1_UX520_CR0,0,520,700_AL_.jpg")
if not COLOR1 == "":
name = "[COLOR %s]%s[/COLOR]" % (COLOR1, name)
xml += "- "\
"
%s "\
""\
"movie "\
"%s "\
"%s "\
"%s "\
""\
""\
"search "\
"searchsd "\
""\
"%s "\
" "\
" " % (name, imdb, title, year, thumbnail)
try:
next_page = re.compile(
'Next »\n.+?
', re.DOTALL | re.IGNORECASE).findall(listhtml)[0] if not COLOR2 == "": myPage = "[COLOR %s]Next Page >>[/COLOR]" % COLOR2 else: myPage = "Next Page >>" xml += "