Eldorado wrote:Are you setting your infolabels, specifically the title infolabel? I believe those determine what is displayed there
Hey Eldorado. yes i set the infolabel Title to the movie name when loading up TV SHows, i use your Metahandler to give show info etc.
Then when i select a show , i list seasons. I then pick a season and list episodes ie Season 1 Episode 1
Now when i select this link, i scrape the hosts details , ie Putlocker etc and add them to a menu
Now when i select putlocker and the movie plays, if i then show info while movie is playing i get the movie name as Putlocker.
here it the GetSource code for TV. I do pass in 'hostname' as Title so it is dsiaplayed so user can select it.
- Code: Select all
elif mode == 'GetTVSource':
tQual=''
linkcount = 0
html = net.http_GET(url).content
reobj = re.compile(r'(?i)window.location.href = \'(.+?)\'.+?(?i)> (.+?)</a>', re.DOTALL | re.IGNORECASE)
if reobj:
for match in reobj.finditer(html):
url,name = match.groups()
url= GetHostSources('http://www.movie2k.to/' + url)
linkcount += 1
addon.add_video_item({'url': url} , {'title': str(linkcount) + '.' + name})
addon.end_of_directory()
else:
# No link found only one embedded in page
url= GetHostSources('http://www.movie2k.to/' + url)
linkcount += 1
addon.add_video_item({'url': url} , {'title': str(linkcount) + '.' + WebHostName(url)})
addon.end_of_directory()