def show_games(): import xbmcgui if os.path.isfile( "/storage/.kodi/userdata/addon_data/script.luna/.storage/luna.conf" ): os.remove( "/storage/.kodi/userdata/addon_data/script.luna/.storage/luna.conf" ) if (check_host(plugin.get_setting('host', str)) == True): if os.path.isfile("/storage/.cache/moonlight/client.p12"): game_controller = RequiredFeature('game-controller').request() #plugin.set_content('movies') return plugin.finish(game_controller.get_games_as_list(), sort_methods=['label']) else: xbmcgui.Dialog().ok( 'Pair key not found!', 'Please pair with the host before proceeding...') open_settings() else: xbmcgui.Dialog().ok( 'Communication Error', 'The host is either not powered on or is asleep on the job. \nOtherwise, please troubleshoot a network issue.' )
def show_games(): game_controller = RequiredFeature('game-controller').request() plugin.set_content('movies') return plugin.finish(game_controller.get_games_as_list(), sort_methods=['label'])
def show_games(): game_controller = RequiredFeature('game-controller').request() plugin.set_content('movies') return plugin.finish(game_controller.get_games_as_list(), sort_methods=['label'])