We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e640c0 + ffb68f6 commit 0c97926Copy full SHA for 0c97926
1 file changed
plugins/lastfm.py
@@ -146,14 +146,20 @@ def getartisttags(artist, bot):
146
request = requests.get(api_url, params = params)
147
tags = request.json()
148
149
+ # Don't show tags from this list
150
+ blacklist = [
151
+ "seen live",
152
+ artist,
153
+ ]
154
+
155
# if artist doesn't exist return no tags
156
if tags.get("error") == 6:
157
return "no tags"
158
159
if 'tag' in tags['toptags']:
160
for item in tags['toptags']['tag']:
161
try:
- if not item['name'] == "seen live":
162
+ if not item['name'] in blacklist:
163
tag_list.append(item['name'])
164
else:
165
pass
0 commit comments