Private GIT

Skip to content
Snippets Groups Projects
Commit fe9e5f3f authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Also ignore thumbnail dirs on syno when processing a folder

parent 5e5a63e2
No related branches found
No related tags found
No related merge requests found
...@@ -311,10 +311,9 @@ def validateDir(path, dirName, nzbNameOriginal, failed, result): ...@@ -311,10 +311,9 @@ def validateDir(path, dirName, nzbNameOriginal, failed, result):
:return: True if dir is valid for processing, False if not :return: True if dir is valid for processing, False if not
""" """
IGNORED_FOLDERS = ['.@__thumb'] IGNORED_FOLDERS = ['.@__thumb', '@eaDir']
folder_name = ek(os.path.basename, dirName) folder_name = ek(os.path.basename, dirName)
for ignored_folder in IGNORED_FOLDERS: if folder_name in IGNORED_FOLDERS:
if folder_name == ignored_folder:
return False return False
result.output += logHelper(u"Processing folder " + dirName, logger.DEBUG) result.output += logHelper(u"Processing folder " + dirName, logger.DEBUG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment