Update lastimport.py

This commit is contained in:
Alok Saboo 2023-12-20 10:28:45 -05:00
parent c445e5ee79
commit 75deae5f47

View file

@ -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)