Fix rare case when HTTP_ROOT is None when retrieving URL
This commit is contained in:
@@ -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 = ''
|
||||||
|
Reference in New Issue
Block a user