From d4784dff23f80f22d7521b1e6dea4e07c6695c59 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 29 Jun 2018 13:24:57 -0700 Subject: [PATCH] Encode terminate session message --- plexpy/pmsconnect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index c72603ed..e91f2b69 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -1934,7 +1934,7 @@ class PmsConnect(object): Output: bool """ - message = message or 'The server owner has ended the stream.' + message = message.encode('utf-8') or 'The server owner has ended the stream.' if session_key and not session_id: ap = activity_processor.ActivityProcessor()