nint8835-archive / iTunesRichPresence

Bring iTunes now playing information to Discord using Rich Presence
https://itunesrichpresence.com
MIT License
274 stars 44 forks source link

"xx:xx Left" continues to tick down despite music is paused. #6

Closed nolsen42 closed 6 years ago

nolsen42 commented 6 years ago

I been using iTunesRichPresence for a while, and I notice that the countdown till the music ends still keeps ticking, even if I pause the music.

And I also notice when it's playing, if you seek or rewind, the countdown doesn't update.

nint8835 commented 6 years ago

The first thing should be fairly easy to fix, not sure about the second one

nint8835 commented 6 years ago

Actually, thinking about it, both should be fairly easy to fix

nint8835 commented 6 years ago

Fix to the second of those issues is to also add time checking to the polltimer, in addition to artist, track, and state. The first should be to see if the music is no longer playing, and to clear the countdown if that is the case