Private GIT

Skip to content
Snippets Groups Projects
Commit 6c71cd2b authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Merge branch 'ignore-files' of git://github.com/yaleman/Sick-Beard into development

parents 180ce7d8 671a7537
Branches
Tags
No related merge requests found
......@@ -54,6 +54,7 @@ class PostProcessor(object):
EXISTS_SMALLER = 3
DOESNT_EXIST = 4
IGNORED_FILESTRINGS = [ "/.AppleDouble/", ".DS_Store" ]
def __init__(self, file_path, nzb_name = None):
"""
Creates a new post processor with the given file path and optionally an NZB name.
......@@ -699,6 +700,10 @@ class PostProcessor(object):
if os.path.isdir( self.file_path ):
self._log(u"File "+self.file_path+" seems to be a directory")
return False
for ignore_file in self.IGNORED_FILESTRINGS:
if ignore_file in self.file_path:
self._log(u"File "+self.file_path+" is ignored type, skipping" )
return False
# reset per-file stuff
self.in_history = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment