From c074ed37f14b0ff58526effcf45c02e2cfca2d26 Mon Sep 17 00:00:00 2001 From: Ben Ockmore Date: Mon, 4 Jan 2016 17:36:30 +0000 Subject: [PATCH] Album is never present in user.getTopTracks, so this is now redundant --- beetsplug/lastimport.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/beetsplug/lastimport.py b/beetsplug/lastimport.py index a85a1a30d..38b5bfc10 100644 --- a/beetsplug/lastimport.py +++ b/beetsplug/lastimport.py @@ -210,17 +210,6 @@ def process_tracks(lib, tracks, log): dbcore.query.MatchQuery('mb_trackid', trackid) ).get() - # Otherwise try artist/title/album - if song is None: - log.debug(u'no match for mb_trackid {0}, trying by ' - u'artist/title/album', trackid) - query = dbcore.AndQuery([ - dbcore.query.SubstringQuery('artist', artist), - dbcore.query.SubstringQuery('title', title), - dbcore.query.SubstringQuery('album', album) - ]) - song = lib.items(query).get() - # If not, try just artist/title if song is None: log.debug(u'no album match, trying by artist/title')