This commit is contained in:
marco
2022-10-01 18:47:04 +02:00
parent f544552b5f
commit 7ff96d2248

View File

@@ -24,7 +24,7 @@ def call_url(url):
webServer = HTTPServer((hostName, serverPort), MyServer)
logger.info("Server started http://%s:%s" % (hostName, serverPort))
s = jsontools.dump({'url': url}).encode()
xbmc.executebuiltin('StartAndroidActivity("",{})'.format(call.format(base64.b64encode(s), hostName, serverPort)))
xbmc.executebuiltin('StartAndroidActivity("com.kodapp","android.intent.action.VIEW","",{})'.format(call.format(base64.b64encode(s), hostName, serverPort)))
while not cookie_ricevuto:
webServer.handle_request()
logger.info("Server stopped.")