With utf-8 we'd see errors like: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 10: ordinal not in range(128) with certain files containing non-ASCII characters. Changing the encoding to base64 has fixed the issue with these files.
The image URL used for covert art has changed with Spotify 0.8.8.323 which resulted in broken notifications. This change restores the correct URL. Thanks to GadjoKiss for providing the fix and Janick Martinez Esturo for reporting the issue.
better gnome integration for gentoo bug 443918 (if gnome-settings-manager is not installed, fail gracefully)
…ager is not installed, fail gracefully)
There was an issue due to the 'pidof' syntax, the script was calling 'pidof /usr/bin/spotify' and not receiving any output. Calling 'pidof spotify' returns the correct process ID allowing the script to properly detect when Spotify exits.