aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-22 11:48:10 +0000
committerGravatar jesopo2019-11-22 11:48:10 +0000
commit6f67bf0c97076d89f2c6a5e3e58149db301c1c07 (patch)
tree1f42ce3802cfae8a02e43f1930d9898b06a0db02 /modules
parentalso set _account_override when registering (diff)
signature
correctly detect when a track has tags (lastfm)
Diffstat (limited to 'modules')
-rw-r--r--modules/lastfm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lastfm.py b/modules/lastfm.py
index 756f1f49..8bf7ebef 100644
--- a/modules/lastfm.py
+++ b/modules/lastfm.py
@@ -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)