Don't proces temp files. fix #437

This commit is contained in:
Ruud
2012-06-12 21:18:56 +02:00
parent b87c9ebc63
commit 3f95a0911a
+3
View File
@@ -289,6 +289,9 @@ class Scanner(Plugin):
# Check if movie is fresh and maybe still unpacking, ignore files new then 1 minute
file_too_new = False
for cur_file in group['unsorted_files']:
if not os.path.isfile(cur_file):
file_too_new = time.time()
break
file_time = [os.path.getmtime(cur_file), os.path.getctime(cur_file)]
for t in file_time:
if t > time.time() - 60: