Merge pull request #3 from lodesmets/patch-1

Fix python3 port issue.
This commit is contained in:
Ian Walton 2019-08-19 18:22:05 -04:00 committed by GitHub
commit 9925f945a6
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'