def jsonrpc_resolve_name(self, p):
        """
        Resolve stream info from a LBRY uri

        Args:
            'name': name to look up, string, do not include lbry:// prefix
        Returns:
            metadata from name claim
        """

        if 'name' in p.keys():
            name = p['name']
        else:
            return self._render_response(None, BAD_REQUEST)

        def _disp(info):
            stream_hash = info['stream_hash']
            if isinstance(stream_hash, dict):
                stream_hash = stream_hash['sd_hash']

            log.info("[" + str(datetime.now()) + "] Resolved info: " + stream_hash)

            return self._render_response(info, OK_CODE)

        d = self._resolve_name(name)
        d.addCallbacks(_disp, lambda _: server.failure)
        d.callback(None)
        return d
dataset/ETHPy150Open lbryio/lbry/lbrynet/lbrynet_daemon/LBRYDaemon.py/LBRYDaemon.jsonrpc_resolve_name/original