mirror of
https://github.com/beetbox/beets.git
synced 2025-12-08 01:23:09 +01:00
Album is never present in user.getTopTracks, so this is now redundant
This commit is contained in:
parent
e2a8bdb23d
commit
c074ed37f1
1 changed files with 0 additions and 11 deletions
|
|
@ -210,17 +210,6 @@ def process_tracks(lib, tracks, log):
|
||||||
dbcore.query.MatchQuery('mb_trackid', trackid)
|
dbcore.query.MatchQuery('mb_trackid', trackid)
|
||||||
).get()
|
).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 not, try just artist/title
|
||||||
if song is None:
|
if song is None:
|
||||||
log.debug(u'no album match, trying by artist/title')
|
log.debug(u'no album match, trying by artist/title')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue