mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 05:11:15 +00:00
add "&" character to genre separators
+ handle r&b genre and rock&roll
This commit is contained in:
1 parent
da88bbd9cc
commit
5ff3e5d28a
4 files changed
+31
-7
No files matched your search
@@ -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