From 04bcaafdb481703d355c1496ded3b23d2f7a6808 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Tue, 17 May 2016 20:15:46 +0200 Subject: [PATCH] Fix direct path replacing possibly several times - Fixes #37 --- resources/lib/PlexAPI.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index f669e9cd..da7a7cac 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -2324,7 +2324,8 @@ class API(): typus = types[typus] if utils.window('remapSMB') == 'true': path = path.replace(utils.window('remapSMB%sOrg' % typus), - utils.window('remapSMB%sNew' % typus)) + utils.window('remapSMB%sNew' % typus), + 1) # There might be backslashes left over: path = path.replace('\\', '/') elif utils.window('replaceSMB') == 'true':