Testing fix for incorrectly cached results that may cause PP issues.

This commit is contained in:
echel0n 2014-07-17 23:45:48 -07:00
parent 4470735437
commit 42c0d7f9f6

View file

@ -267,14 +267,14 @@ def validateDir(path, dirName, nzbNameOriginal, failed):
#check if the dir have at least one tv video file #check if the dir have at least one tv video file
for video in videoFiles: for video in videoFiles:
try: try:
NameParser().parse(video) NameParser().parse(video, cache_result=False)
return True return True
except (InvalidNameException, InvalidShowException): except (InvalidNameException, InvalidShowException):
pass pass
for dir in allDirs: for dir in allDirs:
try: try:
NameParser().parse(dir) NameParser().parse(dir, cache_result=False)
return True return True
except (InvalidNameException, InvalidShowException): except (InvalidNameException, InvalidShowException):
pass pass
@ -285,7 +285,7 @@ def validateDir(path, dirName, nzbNameOriginal, failed):
for packed in packedFiles: for packed in packedFiles:
try: try:
NameParser().parse(packed) NameParser().parse(packed, cache_result=False)
return True return True
except (InvalidNameException, InvalidShowException): except (InvalidNameException, InvalidShowException):
pass pass