From 6610ed3c81911f76fd94502ce73d65b7258bbc2c Mon Sep 17 00:00:00 2001 From: Rato Date: Mon, 22 Feb 2016 12:53:49 +0100 Subject: [PATCH] Strip trailing and leading whitespaces from `mount_points` --- core/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/__init__.py b/core/__init__.py index 07c112c1..d2f16395 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -366,6 +366,7 @@ def initialize(section=None): if REMOTEPATHS: if isinstance(REMOTEPATHS, list): REMOTEPATHS = ','.join(REMOTEPATHS) # fix in case this imported as list. REMOTEPATHS = [ tuple(item.split(',')) for item in REMOTEPATHS.split('|') ] # /volume1/Public/,E:\|/volume2/share/,\\NAS\ + REMOTEPATHS = [ (local.strip(), remote.strip()) for local, remote in REMOTEPATHS ] # strip trailing and leading whitespaces PLEXSSL = int(CFG["Plex"]["plex_ssl"]) PLEXHOST = CFG["Plex"]["plex_host"]