mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
add "&" character to genre separators
+ handle r&b genre and rock&roll
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user