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

Keith C mythtv at keithandjill.com
Fri Jul 7 15:20:11 UTC 2006


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20060707/8047a6ca/attachment.htm 


More information about the mythtv-dev mailing list