spotify_activity has no state if the user is listening to a local file, resulting in a crash.
This PR changes build_pretty_spotify to ensure the spotify activity has state, even if there's no data
This will prevent lanyard from freezing for a while whenever you play a local file.
spotify_activity
has nostate
if the user is listening to a local file, resulting in a crash.This PR changes build_pretty_spotify to ensure the spotify activity has
state
, even if there's no dataThis will prevent lanyard from freezing for a while whenever you play a local file.
Here's an example of the error that was occuring:
I haven't any experience with Elixir so sorry if anything is wrong, but it seems to work fine ^^