def section_list(url): info = gomm.parseMenu(url) # check login if info is None: if not gomtv_login(): return info = gomm.parseMenu(url) if info is None: xbmcgui.Dialog().ok(_L(30010), _L(30013)) return return [{'label':item['title'], 'path':plugin.url_for('program_list', service=item['service'], cate=item['cate'], offset='-')} for item in info['subtab']]
def section_list(url): info = gomm.parseMenu(url) # check login if info is None: if not gomtv_login(): return info = gomm.parseMenu(url) if info is None: xbmcgui.Dialog().ok(_L(30010), _L(30013)) return return [{ 'label': item['title'], 'path': plugin.url_for('program_list', service=item['service'], cate=item['cate'], offset='-') } for item in info['subtab']]
def main_menu(): info = gomm.parseMenu(root_url) return [{'label':item['title'], 'path':plugin.url_for('section_list', url=item['url'])} for item in info['tab']]
def main_menu(): info = gomm.parseMenu(root_url) return [{ 'label': item['title'], 'path': plugin.url_for('section_list', url=item['url']) } for item in info['tab']]