From 574255c4b68dff71518fb219781540a16417497d Mon Sep 17 00:00:00 2001 From: mano3m Date: Sat, 30 Nov 2013 15:27:55 +0100 Subject: [PATCH] Don't tag .ignore files --- couchpotato/core/plugins/renamer/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/couchpotato/core/plugins/renamer/main.py b/couchpotato/core/plugins/renamer/main.py index c8abdbd7..8b1e0d15 100755 --- a/couchpotato/core/plugins/renamer/main.py +++ b/couchpotato/core/plugins/renamer/main.py @@ -619,6 +619,11 @@ Remove it if you want it to be renamed (again, or at least let it try again) tag_files.extend([os.path.join(root, name) for name in names]) for filename in tag_files: + + # Dont tag .ignore files + if os.path.splitext(filename)[1] == '.ignore': + continue + tag_filename = '%s.%s.ignore' % (os.path.splitext(filename)[0], tag) if not os.path.isfile(tag_filename): self.createFile(tag_filename, text)