mirror of
https://github.com/beetbox/beets.git
synced 2026-01-13 11:41:43 +01:00
Remove unneeded Library argument from _missing
This commit is contained in:
parent
18e2704ffb
commit
abe12be4b2
1 changed files with 3 additions and 4 deletions
|
|
@ -25,9 +25,8 @@ plugin = 'missing'
|
|||
log = logging.getLogger('beets')
|
||||
|
||||
|
||||
def _missing(album, lib=None):
|
||||
'''Query MusicBrainz to determine items missing from `album`,
|
||||
caching them in `lib` to avoid further queries.
|
||||
def _missing(album):
|
||||
'''Query MusicBrainz to determine items missing from `album`.
|
||||
'''
|
||||
item_paths = filter(None, map(lambda i: i.path, album.items()))
|
||||
item_mbids = map(lambda x: x.mb_trackid,
|
||||
|
|
@ -116,7 +115,7 @@ class MissingPlugin(BeetsPlugin):
|
|||
fmt = self.config['format'].get()
|
||||
|
||||
for album in lib.albums(decargs(args)):
|
||||
for item in _missing(album, lib):
|
||||
for item in _missing(album):
|
||||
print_obj(item, lib, fmt=fmt)
|
||||
|
||||
self._command.func = _miss
|
||||
|
|
|
|||
Loading…
Reference in a new issue