mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-21 07:04:02 +00:00
implement get_num_matched_tracks
This commit is contained in:
@@ -394,6 +394,13 @@ class Album(DataObject, Item):
|
||||
def can_refresh(self):
|
||||
return True
|
||||
|
||||
def get_num_matched_tracks(self):
|
||||
num = 0
|
||||
for track in self.tracks:
|
||||
if track.is_linked():
|
||||
num += 1
|
||||
return num
|
||||
|
||||
def get_num_unmatched_files(self):
|
||||
return len(self.unmatched_files.files)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user