Hopefully compatibilty with Plex Cloud

This commit is contained in:
tomkat83 2017-01-21 17:34:51 +01:00
parent f96faaa880
commit 98384fb5e4

View file

@ -672,6 +672,8 @@ class PlexAPI():
url = '%s://%s:%s' % (protocol, address, port)
else:
url = data['uri']
if url.count(':') == 1:
url = '%s:%s' % (url, data['port'])
protocol, address, port = url.split(':', 2)
address = address.replace('/', '')