@@ -89,26 +89,16 @@ def find_parents(candidate, branches):
8989 return [candidate ]
9090
9191
92- def split_on_separators (text , separators = None , include_config_separator = None ):
92+ def split_on_separators (text , separators ):
9393 """Split text on multiple separators using regex.
9494
9595 Args:
9696 text: The string to split
97- separators: List of separator patterns (defaults to DEFAULT_ARTIST_SEPARATORS)
98- include_config_separator: Optional config separator to include in the list
97+ separators: List of separator patterns
9998
10099 Returns:
101100 List of stripped text parts, or [text] if no separators found
102101 """
103- if separators is None :
104- separators = DEFAULT_ARTIST_SEPARATORS .copy ()
105- else :
106- separators = separators .copy ()
107-
108- # Add config separator if provided
109- if include_config_separator :
110- separators .insert (0 , re .escape (include_config_separator ))
111-
112102 # Check if any separator exists in the text (unescaped for checking)
113103 has_separator = any (
114104 re .sub (r"\\" , "" , sep ) in text for sep in separators
@@ -474,8 +464,7 @@ def _try_resolve_stage(stage_label: str, keep_genres, new_genres):
474464 # Try splitting on separators for multi-artist albums
475465 albumartists = split_on_separators (
476466 obj .albumartist ,
477- separators = self .config ["artist_separators" ].as_str_seq (),
478- include_config_separator = self .config ["separator" ].get ()
467+ separators = self .config ["artist_separators" ].as_str_seq ()
479468 )
480469 if len (albumartists ) > 1 :
481470 if self .config ["extended_debug" ]:
0 commit comments