Fixed error

Fixed error TypeError: a bytes-like object is required, not 'str'
This might not be the best solution, I can program in python, but I'm not a master in it. 
It works now, but it might not be optimized
This commit is contained in:
lodesmets 2019-08-19 23:05:45 +02:00 committed by GitHub
parent 4a64a572b0
commit 1b4eacd7e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,9 +221,9 @@ class PlexGDM:
update = { 'server' : response.get('from')[0] }
#Check if we had a positive HTTP response
if "200 OK" in response.get('data'):
if bytes("200 OK",'utf-8') in response.get('data'):
for each in response.get('data').split('\n'):
for each in str(response.get('data')).split('\\r\\n'):
update['discovery'] = "auto"
update['owned']='1'