correctly detect when a track has tags (lastfm)

This commit is contained in:
jesopo 2019-11-22 11:48:10 +00:00
parent 090d46720a
commit 6f67bf0c97

View file

@ -75,7 +75,7 @@ class Module(ModuleManager.BaseModule):
track = info_page.data.get("track", {})
tags_str = ""
if "toptags" in track:
if "toptags" in track and track["toptags"]["tag"]:
tags = [t["name"] for t in track["toptags"]["tag"]]
tags_str = " [%s]" % ", ".join(tags)