Fix rare case when HTTP_ROOT is None when retrieving URL

This commit is contained in:
JonnyWong16 2019-10-11 20:11:13 -07:00
parent 30be4b473f
commit 3cf8c4f8a8

View file

@ -1130,7 +1130,7 @@ def get_plexpy_url(hostname=None):
else: else:
port = '' port = ''
if plexpy.HTTP_ROOT.strip('/'): if plexpy.HTTP_ROOT is not None and plexpy.HTTP_ROOT.strip('/'):
root = '/' + plexpy.HTTP_ROOT.strip('/') root = '/' + plexpy.HTTP_ROOT.strip('/')
else: else:
root = '' root = ''