update uri handler
This commit is contained in:
parent
4d79a7828c
commit
dbeb6bc3bc
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue