update uri handler

This commit is contained in:
Jack 2016-09-21 21:55:10 -04:00
parent 4d79a7828c
commit dbeb6bc3bc
2 changed files with 3 additions and 5 deletions

View file

@ -1350,7 +1350,6 @@ class LBRYDaemon(AuthJSONRPCServer):
def _search(self, search): def _search(self, search):
return self.lighthouse_client.search(search) return self.lighthouse_client.search(search)
@AuthJSONRPCServer.auth_required
def jsonrpc_is_running(self): def jsonrpc_is_running(self):
""" """
Check if lbrynet daemon is running Check if lbrynet daemon is running

View file

@ -4,15 +4,14 @@ import subprocess
import sys import sys
from time import sleep from time import sleep
from jsonrpc.proxy import JSONRPCProxy from lbrynet.lbrynet_daemon.auth.client import LBRYAPIClient
from lbrynet.conf import UI_ADDRESS
from lbrynet.conf import UI_ADDRESS, API_CONNECTION_STRING
class LBRYURIHandler(object): class LBRYURIHandler(object):
def __init__(self): def __init__(self):
self.started_daemon = False self.started_daemon = False
self.daemon = JSONRPCProxy.from_url(API_CONNECTION_STRING) self.daemon = LBRYAPIClient.config()
def handle_osx(self, lbry_name): def handle_osx(self, lbry_name):
self.check_daemon() self.check_daemon()