Fabrizz / MMM-OnSpotify

Highly customizable MM2 module that displays what you are listening to in Spotify. Compatible with MMM-LiveLyrics and DynamicTheming.
MIT License
53 stars 9 forks source link

Song Info Remains when Stopped #59

Open martbrad11 opened 3 months ago

martbrad11 commented 3 months ago

I've just installed this on a new MM. I have a minimal installation so I've only added displayWhenEmpty:"none" to the config. The song info pops up as expected but when I stop playing it remains there for what seems like ages?

I'd like the behaviour to be that the info gos to 'none' pretty much straight away after I have stopped playing. Is this possible? PS Spotify app (Android) doesn't really have 'Stop', just Play or Pause, Is it something I'm doing wrong in the app

Fabrizz commented 3 months ago

Hi, currently there is not a way to hide on pause, as the Spotify Api just waits like 15 minutes to set a session as stopped, even on the desktop app it only marks it as stopped when the app is force closed.

I will add a css class that adds paused/playing to the main parent, so the module can be hidden on pause, that would break experimentalCSSOverridesForMM2 colors, but it will work.