L-uu / MusicToSoundpad

Simple C application to seamlessly play Spotify songs in Soundpad.
2 stars 1 forks source link

Song titles not sanitised. #2

Closed L-uu closed 5 months ago

L-uu commented 5 months ago

Example song: "funeral - trying//cry4help"

Intended behaviour: "funeral - trying//cry4help.mp3" is saved to "%USERPROFILE%\Music\funeral - trying//cry4help.mp3", song is added to Soundpad library, song plays.

Current behaviour: "funeral - trying//cry4help" is saved to "%USERPROFILE%\funeral - trying\cry4help.mp3, song is added to Soundpad library, songs fails to play.

The characters "/" and "\", among others, are not allowed in folder or file names on Windows. A function to sanitise song titles must be written.

L-uu commented 5 months ago

This is fixed in the latest version. Invalid characters are now replaced with underscores.