and while the release type is set, it seems it is not complete according to Picard.
When I cluster the files, the total tracks is set and all individual tracks are available.
There is no release in the DB though. I was hoping that just have a track for all tracks would be good enough for is_complete, but I could not find an exact definition of complete either.
$is_complete() only works for matched tracks. It is true, if the file is matched to an album, this album has no unmatched files and every track has either a file matched to it or is ignored according to the rules in Options > Advanced.
Is there any chance to add another version that also works on unmatched tracks?
Along the lines of this:
def is_complete2(tracks)
return false if !same_number_of_discs(tracks)
for disc in number_of_disc(tracks)
return false if !same_number_of_tracks_for_disc(tracks, disc)
for track in number_of_tracks(tracks, disc)
return false if !find_track(tracks, disc, track)
return true
The requirement for all albums to exactly match the DB is sometimes rather painful.