diff --git a/music_kraken/utils/string_processing.py b/music_kraken/utils/string_processing.py index 22ae63e..b76e3fc 100644 --- a/music_kraken/utils/string_processing.py +++ b/music_kraken/utils/string_processing.py @@ -116,10 +116,13 @@ def clean_song_title(raw_song_title: str, artist_name: Optional[str] = None) -> # Remove artist from the start of the title if raw_song_title.lower().startswith(artist_name.lower()): - raw_song_title = raw_song_title[len(artist_name):].strip() - if raw_song_title.startswith("-"): - raw_song_title = raw_song_title[1:].strip() + possible_new_name = raw_song_title[len(artist_name):].strip() + + for char in ("-", "–", ":", "|"): + if possible_new_name.startswith(char): + raw_song_title = possible_new_name[1:].strip() + break return raw_song_title.strip()