add "&" character to genre separators

+ handle r&b genre and rock&roll
This commit is contained in:
mungai-njoroge
2023-09-04 00:49:45 +03:00
parent da88bbd9cc
commit 5ff3e5d28a
4 changed files with 31 additions and 7 deletions
+3 -3
View File
@@ -9,12 +9,12 @@ def split_artists(src: str):
Splits a string of artists into a list of artists.
"""
separators: set = get_flag(SessionVarKeys.ARTIST_SEPARATORS)
separators = separators.union({","})
# separators = separators.union({","})
for sep in separators:
src = src.replace(sep, "߸")
src = src.replace(sep, ",")
artists = src.split("߸")
artists = src.split(",")
return [a.strip() for a in artists]