diff --git a/src/bbc_meet_spotify/music.py b/src/bbc_meet_spotify/music.py index d5bdeb4..20e1194 100644 --- a/src/bbc_meet_spotify/music.py +++ b/src/bbc_meet_spotify/music.py @@ -27,7 +27,7 @@ def clean_string(string): [char for char in unicodedata.normalize("NFD", string) if unicodedata.category(char) != "Mn"] ) new_string = re.sub("[^A-Za-z0-9.'’]+", " ", new_string) - return new_string.lower().split(" feat.")[0].split(" ft.")[0] + return new_string.lower().split(" feat.")[0].split(" ft.")[0].strip() def to_string(self): """Get string value for album or song""" diff --git a/tests/resources/dance-party-2021_standalone.html b/tests/resources/dance-party-2021_standalone.html index 78a2d58..4d68343 100644 --- a/tests/resources/dance-party-2021_standalone.html +++ b/tests/resources/dance-party-2021_standalone.html @@ -2630,7 +2630,7 @@