dupontgu / retro-ipod-spotify-client

The software that powers the sPot: a 4th generation "Click Wheel" iPod with a full Spotify client.
Apache License 2.0
892 stars 90 forks source link

Remove emoticons from playlist names to fix glitches/crashing #24

Closed 3urobeat closed 3 years ago

3urobeat commented 3 years ago

Hey!
This commit adds a regex pattern to SinglePlaylistPage in frontend/view_model.py to remove emoticons from Playlist names.

This fixes glitching on my Pi Zero, that caused one playlist name to appear 5 times and the playlist containing an emoticon to not appear at all.
This also fixes crashing of the whole application on my Linux Desktop machine.

I hope it is okay that I used a stackoverflow answer for the regex pattern (I linked the answer to give credit).