Browse Source

Remove unused file before counting them

pull/992/merge
Ruud 13 years ago
parent
commit
f204309ed7
  1. 19
      couchpotato/core/plugins/scanner/main.py

19
couchpotato/core/plugins/scanner/main.py

@ -237,9 +237,9 @@ class Scanner(Plugin):
del path_identifiers[identifier]
del delete_identifiers
# Determine file types
processed_movies = {}
total_found = len(movie_files)
# Make sure we remove older / still extracting files
valid_files = {}
while True and not self.shuttingDown():
try:
identifier, group = movie_files.popitem()
@ -294,6 +294,19 @@ class Scanner(Plugin):
continue
valid_files[identifier] = group
del movie_files
# Determine file types
processed_movies = {}
total_found = len(valid_files)
while True and not self.shuttingDown():
try:
identifier, group = valid_files.popitem()
except:
break
# Group extra (and easy) files first
# images = self.getImages(group['unsorted_files'])
group['files'] = {

Loading…
Cancel
Save