alexa-soundcloud
alexa-soundcloud copied to clipboard
sanitize track title
Hi, all working here, trying to add cards etc to the code and have come across the issue of sanitizing the track title.. any ideas how to add some error handling or sanitize the returned string ?
Hi @eversonl,
thanks for opening and solving so many issues. here are some ideas:
- remove all variations of "free download", "out now", "release date ....", ...
- split at the '-' if one substrings is equal to the soundcloud username, then interpret the username as artistname and the other substring as title