manucabral / YoutubeMusicRPC

A Youtube Music Rich Presence application for Discord.
https://manucabral.github.io/YoutubeMusicRPC/
MIT License
48 stars 5 forks source link

Fix manually adjusting playstate + minor improvements #42

Closed PickleUpADoodle closed 5 months ago

PickleUpADoodle commented 5 months ago

This pull request fixes a bug where the rich presence would not be updated if the playstate had manually been altered by the user. As a result, the elapsed time could grow indefinitely if the user kept restarting a song, or the time left would stay 0 if the original time left was expired.

Also includes some code quality improvements:

manucabral commented 5 months ago

Great implementation!