From 492e235a5338c184061378fe62cc7139f8f85c47 Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 18 Oct 2021 09:41:00 +0200 Subject: [PATCH] If receiving a Companion request, reply with a code 200 xml --- resources/lib/plexbmchelper/listener.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/plexbmchelper/listener.py b/resources/lib/plexbmchelper/listener.py index 2da964a6..62386918 100644 --- a/resources/lib/plexbmchelper/listener.py +++ b/resources/lib/plexbmchelper/listener.py @@ -210,7 +210,10 @@ class MyHandler(BaseHTTPRequestHandler): else: # Throw it to companion.py companion.process_command(request_path, params) - self.response('', clientinfo.getXArgsDeviceInfo(include_token=False)) + headers = clientinfo.getXArgsDeviceInfo(include_token=False) + headers['Content-Type'] = 'text/xml' + self.response(XML_OK, headers) + self.response(v.COMPANION_OK_MESSAGE, headers) class ThreadedHTTPServer(ThreadingMixIn, HTTPServer):