diff --git a/modules/lastfm.py b/modules/lastfm.py index 6931e0c0..a11c0d93 100644 --- a/modules/lastfm.py +++ b/modules/lastfm.py @@ -82,7 +82,10 @@ class Module(ModuleManager.BaseModule): tags_str = "" if "toptags" in track and track["toptags"]["tag"]: - tags = [t["name"] for t in track["toptags"]["tag"]] + tags_list = track["toptags"]["tag"] + if not type(tags_list) == list: + tags_list = [tags_list] + tags = [t["name"] for t in tags_list] tags_str = " [%s]" % ", ".join(tags) play_count_str = ""