From 0d41321d7f3571254da46bf2fdb26d2b167a1b51 Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 18 Oct 2021 16:45:19 +0200 Subject: [PATCH] Fix PKC not being able to register as a PMS client --- resources/lib/plexbmchelper/plexgdm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/plexbmchelper/plexgdm.py b/resources/lib/plexbmchelper/plexgdm.py index 857d985c..652d1bbc 100644 --- a/resources/lib/plexbmchelper/plexgdm.py +++ b/resources/lib/plexbmchelper/plexgdm.py @@ -93,8 +93,8 @@ class plexgdm(object): try: log.debug("Sending registration data: HELLO %s\n%s" % (self.client_header, self.client_data)) - self.update_sock.sendto("HELLO %s\n%s" - % (self.client_header, self.client_data), + msg = 'HELLO {}\n{}'.format(self.client_header, self.client_data) + self.update_sock.sendto(msg.encode('utf-8'), self.client_register_group) log.debug('(Re-)registering PKC Plex Companion successful') except Exception as exc: