Add path separator for check
This commit is contained in:
1 parent
46b2d6ba6e
commit
50c5044fe8
1 file changed
+2
-2
@@ -114,7 +114,7 @@ class Renamer(Plugin):
|
|||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
for item in no_process:
|
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.')
|
log.error('To protect your data, the movie libraries can\'t be inside of or the same as the "from" folder.')
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -146,7 +146,7 @@ class Renamer(Plugin):
|
|||||||
|
|
||||||
if movie_folder:
|
if movie_folder:
|
||||||
for item in no_process:
|
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.')
|
log.error('To protect your data, the movie libraries can\'t be inside of or the same as the provided movie folder.')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user