alexa-soundcloud icon indicating copy to clipboard operation
alexa-soundcloud copied to clipboard

sanitize track title

Open eversonl opened this issue 8 years ago • 1 comments

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 ?

eversonl avatar Mar 23 '18 14:03 eversonl

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

paszin avatar Apr 04 '18 11:04 paszin