Author Topic: Where is play-count stored?  (Read 6502 times)

BearthMark

  • Newbie
  • *
  • Posts: 19
I was thinking of writing a Plugin that will sync playcounts from an array of media players and devices. I know that you can import the playcount from either iTunes or WMP but I want to be able to synchronize them. Where does MusicBee store its playcount. Is there a plugin or a way to do this in MusicBee, anyway? Am I missing something?

psychoadept

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10940
Hi, welcome to the forum!

I don't think there's an easy way to do this.  But there is a way to convert play counts to an actual tag using the Additional Tagging and Reporting tools plugin.  I thought there was a guide for that around, but I can't find it right now.
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest patches
(Unzip and overwrite existing program files)

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 35002
the playcount stored in the musicbee database only.
See the musicbee API (bottom forum topic) for the api call to retrieve file properties which can include playcount, date last played, skip count

BearthMark

  • Newbie
  • *
  • Posts: 19
Yeah, I was looking through the music bee library file, hoping that the playcount would be stored and marked as a simple integer type value, next to the file path or title or something like that. I'll have to do it the hard way or less easy way.

Yeah, I've actually played around with the Additional Tagging and Reporting tools plugin. That actually reminds me, I think I have the source code for it. Maybe I can modify it or use some of it's code for my Plugin.

Do you think a plugin like the one I want to write is necessary? Will there be better scrobbling and Playcount synchronization in V3 of MusicBee?

I write for a Music blog, so Playcount is important to me. It would be cool to see the combined playcount of tracks and albums from all my devices and media players.   

Thanks for your input guys. It's much appreciated.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 35002
in the library preferences, tick "export as an iTunes xml file"
that file gets updated on exit from MB and can easily be parsed to extract playcount


boroda

  • Hero Member
  • *****
  • Posts: 5307
Yeah, I've actually played around with the Additional Tagging and Reporting tools plugin. That actually reminds me, I think I have the source code for it. Maybe I can modify it or use some of it's code for my Plugin.
yoa can do all youy want with plugin source code