def __init__(self):
watched_status = WatchedStatus()
api = SoapApi(watched_status)
watched_status.soap_api = api
api.main()
try:
httpd = SocketServer.TCPServer(("", KodiConfig.get_web_port()), WebHandler)
httpd.api = api
kodi_waiter = threading.Thread(target=self.kodi_waiter_thread, args=(httpd, watched_status,))
kodi_waiter.start()
httpd.serve_forever()
except:
message_error("Cannot create web-server, port is busy")
xbmc.log('%s: %s' % (ADDONID, format_exc()), xbmc.LOGERROR)
#raise
评论列表
文章目录