INTERACT FORUM

More => Old Versions => Media Center 13 (Development Ended) => Topic started by: oserani on March 23, 2009, 07:04:14 am

Title: Importing itunes XML playlists
Post by: oserani on March 23, 2009, 07:04:14 am
I think I used to be able to get this to work in previous versions.  I export an itunes playlist file in XML format.  My itunes runs on my mac, so the contents of the xml file need to be tweaked.  I am changing file://localhost/volumes to the apropriate path.  It looks like MC reads all files, because it does take a while on the process for the import, but when it's all done, the imported playlist does not contain any songs.  It does take the playlist name though.  I thought I was doing some incorrect find/replace for the MAC XML file, but then i tested an XML file generated on an itunes running on a PC and had even worse luck.  The playlist didn't even get created in MC13, and just the XML file "as such"  got imported.
Title: Re: Importing itunes XML playlists
Post by: JimH on March 23, 2009, 07:06:20 am
What version of iTunes are you using?  Maybe the playlist format has changed.
Title: Re: Importing itunes XML playlists
Post by: Yaobing on March 23, 2009, 07:28:25 am
You must import the playlist by using File->Import Playlist... tool.
Title: Re: Importing itunes XML playlists
Post by: oserani on April 03, 2009, 07:16:22 am
I'm using iTunes 8, creating playlists on my mac.  I use the File/Library/Export Playlist sequence on iTunes, and export the XML to a network drive where the rest of my machines are.  I use the file/import/playlist command on the MC13 side, and it just imports the XML itself, which gets added to the library, but the actual songs and playlist structure don't come over.

any other thoughts.  Thanks.
Title: Re: Importing itunes XML playlists
Post by: dlxneamtu on January 02, 2013, 10:54:13 am
Hi,

I am having the same issue with the latest version of iTunes. Any ideas?

Thanks,
Dan
Title: Re: Importing itunes XML playlists
Post by: dlxneamtu on January 02, 2013, 11:02:53 am
I think it has to do with the .xml location. I am running MC17 in a Windows 7 virtual machine and and iTunes on my mac Mountain LIon. The xml file exported from iTunes looks like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>Major Version</key><integer>1</integer>
   <key>Minor Version</key><integer>1</integer>
   <key>Date</key><date>2013-01-02T16:20:26Z</date>
   <key>Application Version</key><string>11.0.1</string>
   <key>Features</key><integer>5</integer>
   <key>Show Content Ratings</key><true/>
   <key>Music Folder</key><string>file://localhost/Users/dneamtu/Music/iTunes/iTunes%20Media/</string>
   <key>Library Persistent ID</key><string>759BB91C080C4EFD</string>

.....

   <key>5488</key>
      <dict>
         <key>Track ID</key><integer>5488</integer>
         <key>Name</key><string>Total Eclipse of The Heart</string>
         <key>Artist</key><string>Bonnie Tyler</string>
         <key>Album</key><string>The Greatest Hits</string>
         <key>Genre</key><string>90's</string>
         <key>Kind</key><string>MPEG audio file</string>
         <key>Size</key><integer>8718130</integer>
         <key>Total Time</key><integer>271647</integer>
         <key>BPM</key><integer>65</integer>
         <key>Date Modified</key><date>2012-08-06T20:27:40Z</date>
         <key>Date Added</key><date>2012-07-04T07:08:52Z</date>
         <key>Bit Rate</key><integer>256</integer>
         <key>Sample Rate</key><integer>44100</integer>
         <key>Play Count</key><integer>1</integer>
         <key>Play Date</key><integer>3437670033</integer>
         <key>Play Date UTC</key><date>2012-12-06T18:20:33Z</date>
         <key>Sort Album</key><string>Greatest Hits</string>
         <key>Persistent ID</key><string>CC036668AC74A970</string>
         <key>Track Type</key><string>File</string>
         <key>Location</key><string>file://localhost/Users/dneamtu/Music/Oldies/01.%20Bonnie%20Tyler%20-%20Total%20Eclipse%20of%20The%20Heart_The%20Greatest%20Hits.mp3</string>
         <key>File Folder Count</key><integer>2</integer>
         <key>Library Folder Count</key><integer>2</integer>

This does not work. MC will not show any song in the playlist. Any ideas on what to be done?

Thanks,
Dan

Title: Re: Importing itunes XML playlists
Post by: MrC on January 02, 2013, 02:01:08 pm
I think it is this:

         <key>Location</key><string>file://localhost/Users/dneamtu/Music/Oldies/01.%20Bonnie%20Tyler%20-%20Total%20Eclipse%20of%20The%20Heart_The%20Greatest%20Hits.mp3</string>

The path needs to be changed to one MC and Windows understands.  Somewhere I posted about this, but I can't find it at the moment.