correctly detect when a track has tags (lastfm)
This commit is contained in:
parent
090d46720a
commit
6f67bf0c97
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue