def api_getconfiguration(self, value): clientconfigkeys = { 'getencoders' : audiotranscode.getEncoders(), 'getdecoders' : audiotranscode.getDecoders(), 'transcodingenabled' : cherry.config.media.transcode.bool, 'getplayables' : cherry.config.media.playable.list, 'fetchalbumart' : cherry.config.media.fetch_album_art.bool, 'isadmin' : cherrypy.session['admin'], } return json.dumps(clientconfigkeys)
def api_getencoders(self): return json.dumps(audiotranscode.getEncoders())