bjarneo / Pytify

A CLI application for controlling Spotify
MIT License
741 stars 40 forks source link

Encoding using pytify -c #30

Closed bjarneo closed 5 years ago

bjarneo commented 7 years ago

I used this to print the current song in my tmux status-bar. I encountered a problem with the encoding, not being able to print some foreign characters (åäö in my case) in song titles. I solved this by: PYTHONIOENCODING=utf_8 pytify -c Not sure there's a configuration issue with my system or the script uses another encoding (haven't been able to find that in the source though). Anyway, if anyone wants to use it for the same purposes that's how I solved it.

https://www.reddit.com/r/programming/comments/5hlrcu/spotify_as_a_cli_remote_search_for_and_start_songs/db1yhiv/