Fix UnicodeDecodeError for PMS with non ASCII chars
This commit is contained in:
parent
a82fda85ca
commit
9dc86c9731
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue