From 76e9e24c411c71c3c1c71c33f75d1e8cf07fcd27 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Tue, 26 Sep 2017 20:58:20 -0700 Subject: [PATCH] Simpler http root check when starting webserver --- plexpy/webstart.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plexpy/webstart.py b/plexpy/webstart.py index 0695b05e..373c4cfa 100644 --- a/plexpy/webstart.py +++ b/plexpy/webstart.py @@ -78,10 +78,10 @@ def initialize(options): else: auth_enabled = session_enabled = basic_auth_enabled = False - if not options['http_root'] or options['http_root'] == '/': - plexpy.HTTP_ROOT = options['http_root'] = '/' - else: + if options['http_root'].strip('/'): plexpy.HTTP_ROOT = options['http_root'] = '/' + options['http_root'].strip('/') + '/' + else: + plexpy.HTTP_ROOT = options['http_root'] = '/' cherrypy.config.update(options_dict)