mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Merge pull request #968 from ratoaq2/patch-2
Strip trailing and leading whitespaces from `mount_points`
This commit is contained in:
commit
6f000e36bc
1 changed files with 1 additions and 0 deletions
|
@ -366,6 +366,7 @@ def initialize(section=None):
|
||||||
if REMOTEPATHS:
|
if REMOTEPATHS:
|
||||||
if isinstance(REMOTEPATHS, list): REMOTEPATHS = ','.join(REMOTEPATHS) # fix in case this imported as list.
|
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 = [ 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"])
|
PLEXSSL = int(CFG["Plex"]["plex_ssl"])
|
||||||
PLEXHOST = CFG["Plex"]["plex_host"]
|
PLEXHOST = CFG["Plex"]["plex_host"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue