Support => Bug Reports => Topic started by: karaluh on June 04, 2020, 06:07:20 PM
Title: API: PlayCountersChanged emmited on each skipped track
Post by: karaluh on June 04, 2020, 06:07:20 PM
The below code is executed each time a track is skipped, even in the cases where the track playcount is not increased.
Code
case NotificationType.PlayCountersChanged: MessageBox.Show("Playcount");
Title: Re: API: PlayCountersChanged emmited on each skipped track
Post by: Steven on June 05, 2020, 08:49:26 AM
thats right - the event covers both: PlayCountersChanged However I do understand you are only interested in play count increments. Unfortunately with the current API, you would need to keep a copy of the play count when the track starts playing and see if its changed when the PlayCountersChanged event happens
Title: Re: API: PlayCountersChanged emmited on each skipped track
Post by: thisisfc on March 21, 2025, 01:35:30 PM
I'm sure Musicbee sometimes stops emitting the PlayCountersChanged event (or at least, sometimes it's not picked up by the plugin) However, I'm not even sure why does this happen. Sometimes it's fixed "on its own", or after tweaking some unrelated MusicBee setting.