Gust4Oliveira / Last.fm-Discord-Rich-Presence

Script that catch your listening status from Last.fm and shares as your discord game activity (Discord Rich Presence)
MIT License
57 stars 8 forks source link

[YTMusic] Rich Presence breaks if a non-music track is played #25

Open Viexi opened 2 months ago

Viexi commented 2 months ago

Hi there. So I have a playlist of songs found here: https://music.youtube.com/playlist?list=PLSiWaqdtPPXcdDBOEL8DbhN4U7cbkmIBS&si=OaJUjTj6_kT0sDD6

In that list is one song in particular, Carnival Artificial, which is a YouTube video of a music track and not a YTM track.

The rich presence addon works perfectly until that song is reached, however when that song plays the rich presence addon gets stuck at the last played song and then will not update again unless the applet is restarted, even if a new "valid" YTMusic track is played.

I have tried changing as many firefox scrobbler addon settings as possible to fix this, including changing album recognition, determining if YTMusic is used for track info etc but nothing seems to fix this to my knowledge.

I very much like this little app and hope this issue can be resolved. Is there a way to get the applet to check for updated track information every 30 seconds to prevent it from getting stuck if the issue with non-official tracks itself cannot be fixed? Thanks!