Browse Source

Don't proces temp files. fix #437

pull/460/merge
Ruud 13 years ago
parent
commit
3f95a0911a
  1. 3
      couchpotato/core/plugins/scanner/main.py

3
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:

Loading…
Cancel
Save