Pigpog / vlc-discord-rpc

Discord rich presence for VLC media player.
MIT License
207 stars 31 forks source link

Rich Presence not removed when playback is paused (if sleepTime > updateInterval) #63

Closed jeryjs closed 2 years ago

jeryjs commented 2 years ago

As long as the 'sleepTime' value is equal to (or lesser than) the 'updateInterval' value, it works fine, but when I set the 'sleepTime' to even a slightly higher value, the rich presence isn't removed.

I want to be able to set the sleepTime to 60000 and the updateInterval to 3000, but even setting the sleepTime to 3500 and updateInterval to 3000, the rich presence doesn't remove.

image

Pigpog commented 2 years ago

Thanks for pointing this out, I obviously didn't test that code very much after adding the showStopped option. The commit I just put up should fix this, and I actually tested it this time, but maybe I should have you test it before I mark this closed.

jeryjs commented 2 years ago

Yay~! It worked! thx for fixing it :)

Pigpog commented 2 years ago

Good to hear! Ill make a few more fixes that ive been meaning to do and then make a new release. Happy new year.

jeryjs commented 2 years ago

Great! Happy New Year!!