mirror of
https://github.com/beetbox/beets.git
synced 2025-12-08 09:34:23 +01:00
Update lastimport.py
This commit is contained in:
parent
c445e5ee79
commit
75deae5f47
1 changed files with 5 additions and 1 deletions
|
|
@ -213,7 +213,11 @@ def process_tracks(lib, tracks, log):
|
|||
title = tracks[num]["name"].strip() if tracks[num]["name"] else None
|
||||
album = ""
|
||||
if "album" in tracks[num]:
|
||||
album = tracks[num]["album"].get("name", "").strip()
|
||||
album = (
|
||||
tracks[num]["album"].get("name", "").strip()
|
||||
if tracks[num]["album"]
|
||||
else None
|
||||
)
|
||||
|
||||
log.debug("query: {0} - {1} ({2})", artist, title, album)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue