mirror of
https://github.com/beetbox/beets.git
synced 2026-02-21 06:42:25 +01:00
Check for singleton directly
This commit is contained in:
parent
b8687999e2
commit
0751c560e3
1 changed files with 3 additions and 1 deletions
|
|
@ -28,7 +28,9 @@ def mbsync_singletons(lib, query, move, pretend, write):
|
|||
"""Retrieve and apply info from the autotagger for items matched by
|
||||
query.
|
||||
"""
|
||||
for item in lib.items(query + ['singletons:true']):
|
||||
for item in lib.items(query):
|
||||
if not item.singleton:
|
||||
continue
|
||||
if not item.mb_trackid:
|
||||
log.info(u'Skipping singleton {0}: has no mb_trackid'
|
||||
.format(item.title))
|
||||
|
|
|
|||
Loading…
Reference in a new issue