From 9dc86c9731ca660cbc04b640928abeee7faa36f1 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 16 Sep 2018 13:33:20 +0200 Subject: [PATCH] Fix UnicodeDecodeError for PMS with non ASCII chars --- resources/lib/plex_functions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/plex_functions.py b/resources/lib/plex_functions.py index 555cf0ba..f9a5d9f9 100644 --- a/resources/lib/plex_functions.py +++ b/resources/lib/plex_functions.py @@ -261,7 +261,8 @@ def _plex_gdm(): while True: try: data, server = gdm.recvfrom(1024) - return_data.append({'from': server, 'data': data}) + return_data.append({'from': server, + 'data': data.decode('utf-8')}) except socket.timeout: break except Exception as e: