From ee125dfadc6c4b2a3237db8c1abe6ab35ae9f556 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Tue, 19 Jan 2016 08:31:49 -0800 Subject: [PATCH] Forgot 'not' in 2dcae5e2199fc6e7897af95ca1413bb0df6d164e --- plexpy/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plexpy/__init__.py b/plexpy/__init__.py index 2252d50e..61f55ca7 100644 --- a/plexpy/__init__.py +++ b/plexpy/__init__.py @@ -95,9 +95,9 @@ def initialize(config_file): 'HTTP_PORT out of bounds: 21 < %s < 65535', CONFIG.HTTP_PORT) CONFIG.HTTP_PORT = 8181 - if CONFIG.HTTPS_CERT.startswith(os.path.abspath(DATA_DIR)): + if not CONFIG.HTTPS_CERT.startswith(os.path.abspath(DATA_DIR)): CONFIG.HTTPS_CERT = os.path.join(DATA_DIR, 'server.crt') - if CONFIG.HTTPS_KEY.startswith(os.path.abspath(DATA_DIR)): + if not CONFIG.HTTPS_KEY.startswith(os.path.abspath(DATA_DIR)): CONFIG.HTTPS_KEY = os.path.join(DATA_DIR, 'server.key') if not CONFIG.LOG_DIR.startswith(os.path.abspath(DATA_DIR)): @@ -823,4 +823,4 @@ def shutdown(restart=False, update=False): def generate_uuid(): logger.debug(u"Generating UUID...") - return uuid.uuid4().hex \ No newline at end of file + return uuid.uuid4().hex