mirror of
https://github.com/beetbox/beets.git
synced 2026-01-06 16:02:53 +01:00
Add _missing_count function
This commit is contained in:
parent
abe12be4b2
commit
bed7c5ae88
1 changed files with 6 additions and 0 deletions
|
|
@ -25,6 +25,12 @@ plugin = 'missing'
|
|||
log = logging.getLogger('beets')
|
||||
|
||||
|
||||
def _missing_count(album):
|
||||
'''Return number of missing items in `album`.
|
||||
'''
|
||||
return album.tracktotal - len([i for i in album.items()])
|
||||
|
||||
|
||||
def _missing(album):
|
||||
'''Query MusicBrainz to determine items missing from `album`.
|
||||
'''
|
||||
|
|
|
|||
Loading…
Reference in a new issue