getmusicbee.com

Support => Developers' Area => MusicBee API => Topic started by: Spicefly on May 21, 2017, 09:51:28 PM

Title: Importing data into MusicBee
Post by: Spicefly on May 21, 2017, 09:51:28 PM
Hi

I have a ton of playcount and track rating that I can export to an xml file.  I would like to import this into MusicBee but it looks to be using a bespoke format? and not for example a sqlite database?  I was hoping for a simple column I could have matched and imported  ;D

Any suggestions on how to import the data?

Cheers
Title: Re: Importing data into MusicBee
Post by: boroda on May 24, 2017, 03:22:34 AM
manually parse your xml file, match xml data to tracks based on tags and write ratings to tracks. i'm afraid play counts are read-only in mb api.
Title: Re: Importing data into MusicBee
Post by: Steven on May 24, 2017, 07:10:06 AM
i made a change a while ago so playcounts (14) can be written to
Title: Re: Importing data into MusicBee
Post by: boroda on May 24, 2017, 10:20:16 AM
thanks, Steven. i'll change tag tools plugin according to this. the same for skip counts?
Title: Re: Importing data into MusicBee
Post by: redwing on May 24, 2017, 10:35:15 AM
Both fields are already writable with your plugin.
Title: Re: Importing data into MusicBee
Post by: boroda on May 24, 2017, 01:30:39 PM
i've already discovered this, but thanks anyway.
Title: Re: Importing data into MusicBee
Post by: Steven on May 24, 2017, 01:35:16 PM
Another approach is to create an iTunes formatted XML file, from which MB can import the ratings and play counts only via the File/ Library/ Import command (or something like that)
Title: Re: Importing data into MusicBee
Post by: Spicefly on May 30, 2017, 12:08:11 PM
Thanks for your help.  I did a proof of concept and managed to craft an iTunes XML file that MusicBee accepted and updated the library, so just in the process of writing a quick C# program to do the conversation of my source XML file to a suitable importable format.

Thanks for the steer :)