Author Topic: API: PlayCountersChanged emmited on each skipped track  (Read 1510 times)

karaluh

  • Jr. Member
  • **
  • Posts: 31
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");
ListenBrainz plugin for MusicBee:
https://github.com/karaluh/ScrobblerBrainz

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34976
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

thisisfc

  • Newbie
  • *
  • Posts: 3
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.

Is there any way to debug this?