mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 23:12:51 +01:00
query-based fix for #693
This is @geigerzaehler's fix from b868799, just with the typo fixed
(singletons -> singleton).
An alternate (more verbose) fix would have been:
singletons_query.subqueries.append(
dbcore.query.BooleanQuery('singleton', True, False)
)
i.e., pass `False` for the `fast` parameter to indicate that this is not a
fixed-field query.
This commit is contained in:
parent
d02dec8364
commit
de1247c7bc
1 changed files with 1 additions and 3 deletions
|
|
@ -28,9 +28,7 @@ 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):
|
||||
if not item.singleton:
|
||||
continue
|
||||
for item in lib.items(query + ['singleton:true']):
|
||||
if not item.mb_trackid:
|
||||
log.info(u'Skipping singleton {0}: has no mb_trackid'
|
||||
.format(item.title))
|
||||
|
|
|
|||
Loading…
Reference in a new issue