replace acoustid's ";" artist separator with "&"

This commit is contained in:
Tomáš Mládek 2019-07-16 12:03:46 +02:00
parent 66b12c2caf
commit 0369b98ff2

View file

@ -175,7 +175,7 @@ class DelojzaBot:
score, rid, aid_title, aid_artist = results[0]
if score > .4:
title = aid_title
artist = aid_artist
artist = re.sub(r' *; +', ' & ', aid_artist)
best_acoustid_score = score
source = "AcoustID ({}%)".format(round(score * 100))
except acoustid.NoBackendError: