From 3f95a0911a4f4ead036e33b3682b2385f1e7fb49 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 12 Jun 2012 21:18:56 +0200 Subject: [PATCH] Don't proces temp files. fix #437 --- couchpotato/core/plugins/scanner/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/couchpotato/core/plugins/scanner/main.py b/couchpotato/core/plugins/scanner/main.py index 04e75160..1dda624b 100644 --- a/couchpotato/core/plugins/scanner/main.py +++ b/couchpotato/core/plugins/scanner/main.py @@ -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: