diff options
| author | 2019-11-22 11:48:10 +0000 | |
|---|---|---|
| committer | 2019-11-22 11:48:10 +0000 | |
| commit | 6f67bf0c97076d89f2c6a5e3e58149db301c1c07 (patch) | |
| tree | 1f42ce3802cfae8a02e43f1930d9898b06a0db02 /modules | |
| parent | also set _account_override when registering (diff) | |
| signature | ||
correctly detect when a track has tags (lastfm)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/lastfm.py | 2 |
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) |
