From 7ac88ea3ea4c44f2afe4fc6e6ac696a017678353 Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Fri, 12 May 2017 12:41:55 -0400 Subject: [PATCH 1/2] add force option to resolve --- lbrynet/lbrynet_daemon/Daemon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lbrynet/lbrynet_daemon/Daemon.py b/lbrynet/lbrynet_daemon/Daemon.py index 80c8e6b73..a82b7d9b8 100644 --- a/lbrynet/lbrynet_daemon/Daemon.py +++ b/lbrynet/lbrynet_daemon/Daemon.py @@ -1410,12 +1410,13 @@ class Daemon(AuthJSONRPCServer): @AuthJSONRPCServer.auth_required @defer.inlineCallbacks - def jsonrpc_resolve(self, uri): + def jsonrpc_resolve(self, uri, force=False): """ Resolve a LBRY URI Args: 'uri': (str) uri to download + 'force'(optional): (boolean) set to true to ignore cache and force refresh Returns: None if nothing can be resolved, otherwise: If uri resolves to a channel or a claim in a channel: @@ -1485,7 +1486,7 @@ class Daemon(AuthJSONRPCServer): """ try: - resolved = yield self.session.wallet.resolve_uri(uri) + resolved = yield self.session.wallet.resolve_uri(uri, check_cache=not force) except Exception: resolved = None results = yield self._render_response(resolved) From 5da062482d1820ff9f26b317165ee1d1f4d6a46d Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Fri, 12 May 2017 15:15:14 -0400 Subject: [PATCH 2/2] add changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02a767d40..35a774df1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ at anytime. ## [Unreleased] ### Added * Add decorator to support queueing api calls - * + * Added force option to API command resolve ### Changed *