The blacklist feature doesn't correctly allow you to filter out files based on path components. For example, I believe the following should tell tvnamer to ignore any files under the .AppleDouble directory:
This doesn't work -- any media files (or rather their corresponding resource forks, which I believe is what ends up being created by OSX in AppleDouble directories) are processed by tvnamer as if they were real media files.
I believe the culprit is _findFilesInPath which incorrectly checks the blacklist with a file basename instead of full pathname:
for subf in os.listdir(string_type(startpath)):
newpath = os.path.join(startpath, subf)
newpath = os.path.abspath(newpath)
if os.path.isfile(newpath):
if not self._checkExtension(subf):
continue
elif self._blacklistedFilename(subf):
continue
else:
allfiles.append(newpath)
else:
if self.recursive:
allfiles.extend(self._findFilesInPath(newpath))
#end if recursive
#end if isfile
#end for sf
The blacklist feature doesn't correctly allow you to filter out files based on path components. For example, I believe the following should tell tvnamer to ignore any files under the .AppleDouble directory:
This doesn't work -- any media files (or rather their corresponding resource forks, which I believe is what ends up being created by OSX in AppleDouble directories) are processed by tvnamer as if they were real media files.
I believe the culprit is
_findFilesInPath
which incorrectly checks the blacklist with a file basename instead of full pathname:The line in the middle should read:
instead of