Do not mark an album as complete if a track has more than one matching file.

This commit is contained in:
Philipp Wolfer
2010-01-06 17:54:27 +01:00
parent 46d01ced9e
commit 7835312253

View File

@@ -419,10 +419,13 @@ class Album(DataObject, Item):
return len(self.unmatched_files.files)
def is_complete(self):
if self.tracks:
if self.get_num_matched_tracks() == len(self.tracks):
return True
return False
if not self.tracks:
return False
for track in self.tracks:
if len(track.linked_files) != 1:
return False
else:
return True
def get_num_unsaved_files(self):
count = 0