mirror of
https://github.com/beetbox/beets.git
synced 2026-01-20 07:02:39 +01:00
Update lastimport.py
This commit is contained in:
parent
c437a5594e
commit
135faac62e
1 changed files with 11 additions and 0 deletions
|
|
@ -223,6 +223,17 @@ def process_tracks(lib, tracks, log):
|
|||
dbcore.query.MatchQuery("mb_trackid", trackid)
|
||||
).get()
|
||||
|
||||
# If not, try just album/title
|
||||
if song is None:
|
||||
log.debug("no album match, trying by album/title")
|
||||
query = dbcore.AndQuery(
|
||||
[
|
||||
dbcore.query.SubstringQuery("album", album),
|
||||
dbcore.query.SubstringQuery("title", title),
|
||||
]
|
||||
)
|
||||
song = lib.items(query).get()
|
||||
|
||||
# If not, try just artist/title
|
||||
if song is None:
|
||||
log.debug("no album match, trying by artist/title")
|
||||
|
|
|
|||
Loading…
Reference in a new issue