mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 13:07:09 +01:00
Don't check for item.paths == None as that can't happen
This commit is contained in:
parent
d32a3ef9b5
commit
763cfa06b4
1 changed files with 2 additions and 4 deletions
|
|
@ -34,11 +34,9 @@ def _missing_count(album):
|
|||
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,
|
||||
filter(lambda i: i.path is not None, album.items()))
|
||||
item_mbids = map(lambda x: x.mb_trackid, album.items())
|
||||
|
||||
if len(item_paths) < album.tracktotal:
|
||||
if len([i for i in album.items()]) < album.tracktotal:
|
||||
# fetch missing items
|
||||
# TODO: Implement caching that without breaking other stuff
|
||||
album_info = hooks._album_for_id(album.mb_albumid)
|
||||
|
|
|
|||
Loading…
Reference in a new issue