Fix UnicodeDecodeError for PMS with non ASCII chars

This commit is contained in:
croneter 2018-09-16 13:33:20 +02:00
parent a82fda85ca
commit 9dc86c9731

View file

@ -261,7 +261,8 @@ def _plex_gdm():
while True: while True:
try: try:
data, server = gdm.recvfrom(1024) 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: except socket.timeout:
break break
except Exception as e: except Exception as e: