From dbeb6bc3bc53cbe8cdc2c6e2409430035afcd86f Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 21 Sep 2016 21:55:10 -0400 Subject: [PATCH] update uri handler --- lbrynet/lbrynet_daemon/LBRYDaemon.py | 1 - packaging/uri_handler/LBRYURIHandler.py | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index e5265264d..8ac3bc1ce 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -1350,7 +1350,6 @@ class LBRYDaemon(AuthJSONRPCServer): def _search(self, search): return self.lighthouse_client.search(search) - @AuthJSONRPCServer.auth_required def jsonrpc_is_running(self): """ Check if lbrynet daemon is running diff --git a/packaging/uri_handler/LBRYURIHandler.py b/packaging/uri_handler/LBRYURIHandler.py index dd1c5b13e..bb17a33d6 100644 --- a/packaging/uri_handler/LBRYURIHandler.py +++ b/packaging/uri_handler/LBRYURIHandler.py @@ -4,15 +4,14 @@ import subprocess import sys from time import sleep -from jsonrpc.proxy import JSONRPCProxy - -from lbrynet.conf import UI_ADDRESS, API_CONNECTION_STRING +from lbrynet.lbrynet_daemon.auth.client import LBRYAPIClient +from lbrynet.conf import UI_ADDRESS class LBRYURIHandler(object): def __init__(self): self.started_daemon = False - self.daemon = JSONRPCProxy.from_url(API_CONNECTION_STRING) + self.daemon = LBRYAPIClient.config() def handle_osx(self, lbry_name): self.check_daemon()