Skip to content

Commit 0c97926

Browse files
committed
Merge branch 'gonzobot' of https://github.com/snoonetIRC/CloudBot into gonzobot
2 parents 9e640c0 + ffb68f6 commit 0c97926

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

plugins/lastfm.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,20 @@ def getartisttags(artist, bot):
146146
request = requests.get(api_url, params = params)
147147
tags = request.json()
148148

149+
# Don't show tags from this list
150+
blacklist = [
151+
"seen live",
152+
artist,
153+
]
154+
149155
# if artist doesn't exist return no tags
150156
if tags.get("error") == 6:
151157
return "no tags"
152158

153159
if 'tag' in tags['toptags']:
154160
for item in tags['toptags']['tag']:
155161
try:
156-
if not item['name'] == "seen live":
162+
if not item['name'] in blacklist:
157163
tag_list.append(item['name'])
158164
else:
159165
pass

0 commit comments

Comments
 (0)