You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
forsubfinos.listdir(string_type(startpath)):
newpath=os.path.join(startpath, subf)
newpath=os.path.abspath(newpath)
ifos.path.isfile(newpath):
ifnotself._checkExtension(subf):
continueelifself._blacklistedFilename(subf):
continueelse:
allfiles.append(newpath)
else:
ifself.recursive:
allfiles.extend(self._findFilesInPath(newpath))
#end if recursive#end if isfile#end for sf
The line in the middle should read:
elifself._blacklistedFilename(newpath):
instead of
elifself._blacklistedFilename(subf):
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: