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

karaluh

  • Jr. Member
  • **
  • Posts: 30
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
  • Sr. Member
  • *****
  • Posts: 34361
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