Hi Zach, I've applied a modified version of your patch to our features_sqlite branch. The two main changes I made were moving your code to its own class (LegacyLibraryImporter) and checking to see if the files in the old library exist before adding them to the new library. The old library code didn't handle missing files very well.
So the features_sqlite branch should upgrade your library from 1.7's XML format to 1.8's DB format. Two downsides to the current code are that there's no GUI notification while the upgrade is taking place (it happens before the Mixxx window is opened), and that imported track entries will be missing the new fields we added in 1.8 (album and genre). Thanks! Albert On Tue, Dec 1, 2009 at 3:59 PM, Albert Santoni <[email protected]> wrote: > Hi guys, > > Attached is a patch from Zach Shutters that should import your 1.7 > library into the new Mixxx DB for 1.8. If anyone wants to play with > this, please give it a shot. > > One caveat Zach pointed out is that the library table model wasn't > being updated immediately so the track table view did not show the > imported tracks on first run. I will try to fix this when I get a > chance to sit down with it unless someone beats me to it. > > Thanks, > Albert > > > ---------- Forwarded message ---------- > From: Zach <[email protected]> > Date: Sat, Nov 14, 2009 at 10:32 PM > Subject: library importing diff > To: Albert Santoni <[email protected]> > > > > > -- > Zach Shutters > ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Mixxx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mixxx-devel
