INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MCXMLExport Preset  (Read 2455 times)

Crayola Boy

  • Regular Member
  • Recent member
  • *
  • Posts: 48
  • Change this by choosing profile
MCXMLExport Preset
« on: June 30, 2005, 08:07:06 pm »

I would like to emulate the iTunes Library XML file without having to use iTunes. Is there an iTunes preset out there or does anyone know how to accomplish this? I'd like to use www.itunesregistry.com, but I have to upload my xml library.

Help please. Thanks
Tony
Logged

IlPadrino

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 496
Re: MCXMLExport Preset
« Reply #1 on: July 03, 2005, 02:35:18 am »

It's certainly possible.  I don't know what the iTunes schema looks like (I couldn't find an example in the short time I spent googling), but transforming from JRiver's MPL schema to another XML schema is almost always straightforward.

Show a sample of the schema that itunesregistry is looking for.  Are you using MCXMLExport?
Logged

Crayola Boy

  • Regular Member
  • Recent member
  • *
  • Posts: 48
  • Change this by choosing profile
Re: MCXMLExport Preset
« Reply #2 on: July 03, 2005, 08:03:11 pm »

Yea, I'm using MCXMLExport and I do have an example of the iTunes XML file, but I know nothing of XML.
Logged

IlPadrino

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 496
Re: MCXMLExport Preset
« Reply #3 on: July 04, 2005, 05:27:20 am »

Quote
Show a sample of the schema that itunesregistry is looking for.

That means show an example of the XML.
Logged

Crayola Boy

  • Regular Member
  • Recent member
  • *
  • Posts: 48
  • Change this by choosing profile
Re: MCXMLExport Preset
« Reply #4 on: July 06, 2005, 11:34:05 pm »

Hope this helps


- <dict>
  <key>Track ID</key>
  <integer>199</integer>
  <key>Name</key>
  <string>Express Yourself</string>
  <key>Artist</key>
  <string>Charles Wright & The Watts 103rd Street Rhythm Band</string>
  <key>Album</key>
  <string>In Yo' Face! The History Of Funk - Volume 1</string>
  <key>Genre</key>
  <string>Funk</string>
  <key>Kind</key>
  <string>MPEG audio file</string>
  <key>Size</key>
  <integer>3737600</integer>
  <key>Total Time</key>
  <integer>233482</integer>
  <key>Disc Number</key>
  <integer>1</integer>
  <key>Disc Count</key>
  <integer>1</integer>
  <key>Track Number</key>
  <integer>4</integer>
  <key>Track Count</key>
  <integer>15</integer>
  <key>Year</key>
  <integer>1993</integer>
  <key>BPM</key>
  <integer>93</integer>
  <key>Date Modified</key>
  <date>2005-07-07T03:19:38Z</date>
  <key>Date Added</key>
  <date>2005-07-07T03:12:59Z</date>
  <key>Bit Rate</key>
  <integer>128</integer>
  <key>Sample Rate</key>
  <integer>44100</integer>
  <key>Rating</key>
  <integer>80</integer>
  <key>Compilation</key>
  <true />
  <key>Track Type</key>
  <string>File</string>
  <key>Location</key>
  <string>file://localhost/F:/My%20Documents/My%20Music/(Multiple%20Artists)/In%20Yo'%20Face!%20The%20History%20Of%20Funk%20-%20Volume%201/04%20Express%20Yourself.mp3/</string>
  <key>File Folder Count</key>
  <integer>4</integer>
  <key>Library Folder Count</key>
  <integer>1</integer>
  </dict>
  <key>200</key>
Logged

lOth

  • Citizen of the Universe
  • *****
  • Posts: 785
Re: MCXMLExport Preset
« Reply #5 on: July 07, 2005, 04:23:43 pm »

As I mentioned in a previous post (http://yabb.jriver.com/interact/index.php?topic=24875.msg186015#msg186015), I'd be interested in this as well, so that I could export my library info to musicmobs.com.
Logged

IlPadrino

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 496
Re: MCXMLExport Preset
« Reply #6 on: July 09, 2005, 08:08:48 am »

Crayola Boy,

OK...  your example wasn't enough to give me the complete picture, so I did a bit of googling and found a nice explanation at http://www.xml.com/pub/a/2004/11/03/itunes.html.

Basically, here's the explanation of what you need to generate:
Quote
<key>839</key>
<dict>
  <key>Track ID</key><integer>839</integer>
  <key>Name</key><string>Sweet Georgia Brown</string>
  <key>Artist</key><string>Count Basie & His Orchestra</string>
  <key>Composer</key><string>Bernie/Pinkard/Casey</string>
  <key>Album</key><string>Prime Time</string>
  <key>Genre</key><string>Jazz</string>
  <key>Kind</key><string>Protected AAC audio file</string>
  <key>Size</key><integer>3771502</integer>
  <key>Total Time</key><integer>219173</integer>
  <key>Disc Number</key><integer>1</integer>
  <key>Disc Count</key><integer>1</integer>
  <key>Track Number</key><integer>3</integer>
  <key>Track Count</key><integer>8</integer>
  <key>Year</key><integer>1977</integer>
  <key>Date Modified</key><date>2004-06-16T18:10:55Z</date>
  <key>Date Added</key><date>2004-06-16T18:08:31Z</date>
  <key>Bit Rate</key><integer>128</integer>
  <key>Sample Rate</key><integer>44100</integer>
  <key>Play Count</key><integer>3</integer>
  <key>Play Date</key><integer>-1119376103</integer>
  <key>Play Date UTC</key><date>2004-08-17T16:39:53Z</date>
  <key>Rating</key><integer>100</integer>
  <key>Artwork Count</key><integer>1</integer>
  <key>File Type</key><integer>1295274016</integer>
  <key>File Creator</key><integer>1752133483</integer>
  <key>Location</key><string>file://localhost/Users/niel/Music/ \
iTunes/iTunes%20Music/Count%20Basie%20&%20His%20Orchestra/ \
Prime%20Time/03%20Sweet%20Georgia%20Brown.m4p</string>
  <key>File Folder Count</key><integer>4</integer>
  <key>Library Folder Count</key><integer>1</integer>
</dict>

The collection of tracks is a dict, keyed by the track ID. Within each track, also a dict, the keys include Track ID, Name, Artist, Album, Genre, Kind, Size, Total Time, Disc Number, Disc Count, Track Number, Track Count, Year, Date Modified, Date Added, Bit Rate, Sample Rate, Play Count, Play Date, Play Date UTC, File Type, File Creator, Location, File Folder Count, and Library Folder Count. Although most of these are self-explanatory, a few bear further explanation.

Kind refers to the file encoding. Valid values include AAC audio file and MPEG audio file.

Play Date and Play Date UTC contain the date of the last time the track was played to the end, in local and UTC time, respectively.

File Type and File Creator contain the Mac-OS-specific file type and creator, a long integer that indicates the program that created the file, and a particular file type. These long integers are usually represented as a mnemonic four-character code.

Location contains the URL of the audio file, with a file URL scheme.

So this should be pretty straightforward, with perhaps the conversion of the dates and time.

I think I've got about a week of down time where I can spend a few hours on this (assuming I can VNC into my computer back home), but I'll need a few things:

1)  Give me a complete example of an iTunes Music Library file with just a handful of media items and no playlists (I don't think you can get at the playlists with MCXMLExport).
2)  Give me a complete example of an MPL (just export a playlist as MPL) with just a handful of media items in it.
3)  Tell me which fields should line up.

Then I'll write some XSLT that goes from MPL to iTunes Music Library and you can see how that works.  I'm unsure on how some of the fields that don't map will work for your purpose, but I'm assuming a default value will work just fine.
Logged

runemail

  • Regular Member
  • World Citizen
  • ***
  • Posts: 205
  • Soft Rock
Re: MCXMLExport Preset
« Reply #7 on: July 11, 2005, 05:38:07 am »

This would be useful! Thanks in advance :)

Crayola Boy

  • Regular Member
  • Recent member
  • *
  • Posts: 48
  • Change this by choosing profile
Re: MCXMLExport Preset
« Reply #8 on: July 14, 2005, 06:05:28 pm »

Thanks. This place rocks.

I'm off my computer for a month while I'm moving and getting internet service back up, so I'm sorry I can't get anything to you. If someone else can, that would be great. Thanks.
Logged

Crayola Boy

  • Regular Member
  • Recent member
  • *
  • Posts: 48
  • Change this by choosing profile
Re: MCXMLExport Preset
« Reply #9 on: October 09, 2005, 07:06:33 pm »

Well, here's the thing: I don't have iTunes installed and I don't want to. So if anyone else can send in a library xml example from iTues, I'd be very happy. Thanks.
Logged

lOth

  • Citizen of the Universe
  • *****
  • Posts: 785
Re: MCXMLExport Preset
« Reply #10 on: October 13, 2005, 11:05:12 am »

crayola boy,

I made a small library example just for you.

Let me know once you got it so that I can delete it.

Hope you can make something out of it so that we can export MC's library to iTunes.
Logged
Pages: [1]   Go Up