From 50c5044fe8fa6f7ab624a72e8dba78453241b127 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 1 Dec 2013 19:23:53 +0100 Subject: [PATCH] Add path separator for check --- couchpotato/core/plugins/renamer/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/renamer/main.py b/couchpotato/core/plugins/renamer/main.py index a03e1af8..3734845d 100755 --- a/couchpotato/core/plugins/renamer/main.py +++ b/couchpotato/core/plugins/renamer/main.py @@ -114,7 +114,7 @@ class Renamer(Plugin): return else: for item in no_process: - if from_folder in item: + if '%s%s' % (from_folder, os.path.sep) in item: log.error('To protect your data, the movie libraries can\'t be inside of or the same as the "from" folder.') return @@ -146,7 +146,7 @@ class Renamer(Plugin): if movie_folder: for item in no_process: - if movie_folder in item: + if '%s%s' % (movie_folder, os.path.sep) in item: log.error('To protect your data, the movie libraries can\'t be inside of or the same as the provided movie folder.') return