mirror of
https://github.com/jellyfin/jellyfin-mpv-shim.git
synced 2024-11-27 00:00:37 +00:00
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:
parent
4a64a572b0
commit
1b4eacd7e9
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user