replace acoustid's ";" artist separator with "&"
This commit is contained in:
parent
66b12c2caf
commit
0369b98ff2
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ class DelojzaBot:
|
||||||
score, rid, aid_title, aid_artist = results[0]
|
score, rid, aid_title, aid_artist = results[0]
|
||||||
if score > .4:
|
if score > .4:
|
||||||
title = aid_title
|
title = aid_title
|
||||||
artist = aid_artist
|
artist = re.sub(r' *; +', ' & ', aid_artist)
|
||||||
best_acoustid_score = score
|
best_acoustid_score = score
|
||||||
source = "AcoustID ({}%)".format(round(score * 100))
|
source = "AcoustID ({}%)".format(round(score * 100))
|
||||||
except acoustid.NoBackendError:
|
except acoustid.NoBackendError:
|
||||||
|
|
Loading…
Reference in a new issue