From 06cfd4c5492a8c77c8a0fde393571d78b2cb4550 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 12 Oct 2014 13:21:26 -0700 Subject: [PATCH] Use MatchQuery for mb_trackid lookup --- beetsplug/lastimport.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beetsplug/lastimport.py b/beetsplug/lastimport.py index e65400580..5439f88ef 100644 --- a/beetsplug/lastimport.py +++ b/beetsplug/lastimport.py @@ -140,7 +140,9 @@ def process_tracks(lib, tracks): # First try to query by musicbrainz's trackid if trackid: - song = lib.items('mb_trackid:' + trackid).get() + song = lib.items( + dbcore.query.MatchQuery('mb_trackid', trackid) + ).get() # Otherwise try artist/title/album if not song: