def get_streams(title,thumbnail): # arg(title) strmList = Mya.get_searchall(title) for stream in strmList: plugintools.add_item(title=stream.get('title'),action='stream',url=stream.get('url'),thumbnail=thumbnail) plugintools.close_item_list()
def get_main(): url ='https://www.movie2free.com' mainList = Mya.getgenre(url) for ctg in mainList: plugintools.add_item(title=ctg.get('title'),action='showmovie',url=ctg.get('url')) plugintools.add_item(title=u'Slect Hosts', action='showhosts') plugintools.close_item_list()
def get_genre(url): catgList = Mya.getgenre(url) for ctg in catgList: plugintools.add_item(title=ctg.get('title'), action='showmovie', url=ctg.get('url')) plugintools.close_item_list()
def get_hosts(): hostlist = Mya.gethosts() for host in hostlist: plugintools.add_item(title=host.get('title'), action='showgenre', url=host.get('url')) plugintools.close_item_list()
def get_categories(url): # catgList=[] # if 'Movie2Free' in title : # catgList = movie2free.getMenu() # if '037HD' in title : # catgList = 037hd.getMenu() catgList = Mya.getMenu(url) for ctg in catgList: plugintools.add_item(title=ctg.get('title'),action='showmovie',url=ctg.get('url')) plugintools.close_item_list()
def get_shows(url): showsList = Mya.getMovies(url) for show in showsList: thumb = show.get('thumbnail') if thumb == None: thumb = "" if show.get('title')!= u"הבא": plugintools.add_item(title=show.get('title'),action='streamslist',url=show.get('url'),thumbnail=thumb) else: plugintools.add_item(title=show.get('title'),action='showmovie',url=show.get('url'),thumbnail=thumb) plugintools.close_item_list()