[mythtv] [mythtv-commits] Ticket #2030: iTunes playlist importer

Frank Lynch frank.lynch at gmail.com
Fri Jul 7 15:46:39 UTC 2006


On 7/7/06, Keith C <mythtv at keithandjill.com> wrote:
>
> On Jul 7, 2006, at 9:30 AM, Frank Lynch wrote:
>
> On 7/7/06, Keith C <mythtv at keithandjill.com> wrote:
> >
> >
> > On Jul 6, 2006, at 9:17 PM, MythTV wrote:
> >
> > > #2030: iTunes playlist importer
> > > -----------------------------------
> > > +----------------------------------------
> > >  Reporter:   frank.lynch at gmail.com  |       Owner:  ijr
> > >      Type:  enhancement            |      Status:  new
> > >  Priority:  minor                  |   Milestone:  0.20
> > > Component:  mythmusic              |     Version:  head
> > >  Severity:  low                    |
> > > -----------------------------------
> > > +----------------------------------------
> > >  The attached patch depends on Colins update to mythmusic:
> > >     http://svn.mythtv.org/trac/ticket/1919
> > >  This patch imports itunes playlists into mythmuisc. Simply copy your
> > >  itunes library file (iTunes Music Library.xml normally found under
> > >  MyDocuments or MyMusic on Windows) into the mythmusic search path
> > > and scan
> > >  for new music.
> >
> > You're my hero.
> >
> > Any chance this keeps the playlists synchronized?  I'm using
> > chronosync on the Mac to sync my whole itunes library to my Myth
> > server.  Would be nice if the playlists would get updated on
> > subsequent scans.
> >
> > Keith C
>
>
>
> Hi Keith,This is currently a one-way import of the iTunes playlists into
> mythmusic.  It doesn't export mythmusic playlists back out to the  iTunes
> xml document.  I do agree that it would be really nice to have a playlist
> exporting feature for mythmusic, but its not something that can be easily
> done with my iTunes playlist importer. This importer uses SAX to parse the
> iTunes xml document, SAX provides a memory-efficient and reasonably fast way
> to parse xml,  but it does not offer an easy way of updating/modifying the
> xml document. If QT had a StAX api it would have been very useful for
> this...
> Currently I would view a playlist exporter as a seperate story.
> regards,
> --Frank
>
>
> Actually, I didn't really expect an exporter.  iTunes XML files are a
> mess, with too many fixed path references.  I guess my question was far more
> simple : on subsequent scans, it finds a playlist in the XML with the same
> name as a previous scan, how does it handle it?  Ignore, replace, or merge?
>
> Keith
>


Currently it does a replace. Obviously it would be easy to do ignore (and
perhaps I should add that as an option).
Merge is a little trickier, we could do a very simple and dumb append, but
thats a little clunky and would probably result in a lot of repetition in
playlists. Merge could just do additive changes, but thats essentially the
same as what replace does today (you just loose any tweaks you made to the
playlist in mythmusic).
I'd be interested in hearing how you'd like to see the merging of playlists
work. Do you think that the "merge additive changes only" option delivers
value over and above the replace option?
cheers,
--Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20060707/72305b4e/attachment.htm 


More information about the mythtv-dev mailing list