Itunes XML Location String

Hi Dudes and Dudettes,
I've recently been on a mission to convert all of my Winamp playlists to iTunes so I can keep them all in the same order for my iPhone (I'm extremely particular about how my playlists and filenames work, but that's a different story).
So, there is no way for me to import all playlists at once. I can import the folder of my playlists, which will import all the tracks, but will not retain the actual playlist names (which I need).
I can drag and drop each individual playlist into the library/playlists window, but to drag, drop, click to save list name, wait for tracks to import, scroll to the top of the window, rinse, repeat for my some 500+ playlists, is unbelievably time consuming.
My way around this all is to use PHP to read each m3u, get the mp3 path, and and then place each track into the itunes xml format for importing.
I have everything correct, EXCEPT the '<key>Location</key><string>file://localhost/D:/Mp3's/Artist%20-%20Album/01%20-%20Artist%20-%20TrackName.mp3</string>' part.
I understand the above format, and that certain characters must be converted.
For this, I am using htmlentities($location_string,null,'UTF-8') to convert the string, and rawurlencode($location_string) to get close to what it is supposed to be. But this converts slashes and apostrophes and commas (which I've noticed after looking at what XML iTunes spits out, that these are not encoded characters at all). I also have tracks with other characters (i.e. Rammstein - Völkerball [Live In Nimes]).
So, after all of that explanation (and if you haven't fallen asleep yet) my question is, does any guru know what characters are allowed in the location string and what characters aren't?

One for each artist/album is correct.
And yeah.... while I'm particular about file names, not everything has album names or track numbers in id3, and if its from a compilation, it usually has different album names.

Similar Messages

  • Help!! Aperture corrupting my itunes XML file

    I am experiencing a weird problem with my itunes music library seemingly being corrupted by Aperture, Apple's image processing application. The file path to my music file is being overwritten in the itunes music library XML file with a file path to one of my photos stored in Aperture! Has anyone experienced this issue? And more importantly, does anyone have a solution to the problem.
    Here is what's happening:
    1. I click on a music file in itunes to play it. Nothing happens - no music plays, no error message is displayed.
    2. I open the itunes XML music library.XML file to see the path that itunes is using to locate the music file. I notice that the location key for the music file has been overwritten and now points to a random jpeg file that I have stored in my Aperture library.
    Here is what the XML entry looks like for the music file. Note the path referenced in the location key. It no longer points to the audio file in my itunes music directory. Instead it points to a jpeg file in my Aperture library.
    <key>1167</key>
    <dict>
    <key>Track ID</key><integer>1167</integer>
    <key>Name</key><string>Hash Pipe</string>
    <key>Artist</key><string>Weezer</string>
    <key>Album</key><string>Hash Pipe (CDS)</string>
    <key>Genre</key><string>Alternative</string>
    <key>Kind</key><string>MPEG audio file</string>
    <key>Size</key><integer>1152</integer>
    <key>Total Time</key><integer>185704</integer>
    <key>Track Number</key><integer>1</integer>
    <key>Year</key><integer>2001</integer>
    <key>Date Modified</key><date>2007-06-15T17:36:27Z</date>
    <key>Date Added</key><date>2008-03-13T21:02:47Z</date>
    <key>Bit Rate</key><integer>192</integer>
    <key>Sample Rate</key><integer>44100</integer>
    <key>Comments</key><string> </string>
    <key>Persistent ID</key><string>285E19D7CE6E8007</string>
    <key>Track Type</key><string>File</string>
    <key>Location</key><string>file://localhost/Users/ericwhalen/Pictures/Aperture%20Library.aplibrary/Glacier% 20Pix.approject/2007-06-15%20@%2009:27:19%20AM%20-%201.apimportgroup/IMG8045/IMG8045.JPG.apfile</string>
    <key>File Folder Count</key><integer>6</integer>
    <key>Library Folder Count</key><integer>3</integer>
    </dict>
    Has anybody seen this behavior before?
    Thanks,

    The file path to my music file is being overwritten in the itunes music library XML file
    Okay but iTunes does not use the iTunes library.xml.
    It is created for other apps to use the iTunes library.
    What is the problem you are having?

  • ITunes Music Locations - controlling workstations remotely via script?

    I do storage administration at a company with over 2000 users scattered across the globe. Predictably, at least have use iTunes. We redirect the "My Documents" folder to a network location to force the backup of critical project data. This creates a huge problem for us. iTunes defaults to using the My Music folder in My Documents. This means we are storing and backing up at least 1TB of music.
    I have found that iTunes stores its configuration in xml files in the application data directory in the user profile. I cannot readily figure out where in this file the location is recorded.
    Has anyone confronted this problem, and if so, is there a way to control iTunes installs remotely to set the music folder location, via script, GPO or anything at all?

    The library location is indeed stored in the iTunesPrefs.xml file. Look for the key "iTunes Library Location:1".
    But I have a script that almost does what you want. Here is the perl source:
    http://home.comcast.net/~teridon73/itunesscripts/itunesopenlibrary.txt
    Here is a compiled EXE for it:
    http://home.comcast.net/~teridon73/itunesscripts/itunesopenlibrary.zip
    Anyway, the script basically works by setting the library location to a path that you pass to it. It does so by updating the iTunesPrefs.xml file. This file is very small, so you shouldn't need to worry about it!
    Of course, the script only works if the iTunesPrefs.xml file already exists. It would be nice if you could include a template iTunesPrefs.xml in your new user creation/login script. If the path is the same for every user, well, then you're done I guess.
    If not, you can run the script to set the path to what you really want it to be.
    Existing users are a different story. You can run my script to change the library location, of course. But then you also have to move their existing library file and their music back to that location. Well, you don't have to; you can make the users do it themselves! Also, I don't know if that will work as I haven't tested it.
    I haven't fully explained everything, but I don't have time right now. I hope at least I've given you some ideas. Of course the optimum solution is an Apple-provide GPO you could use. You can try asking apple for it via either a bugreport (if you have an ADC account), or the feedback page for iTunes:
    http://www.apple.com/feedback/itunesapp.html
    Rob

  • ITunes xml file search/ access {on user's computer} ~ step 1

    Building a RichMediaAnnotaion (RMA) JukeBox.
    This will be hosted in a PDF.
    Tools: Flash CS5.5 & Acrobat X Pro
    The Juke Box will read the User's iTunes Library.xml file
    (once JavaScript affirms it is present, i.e. User uses iTunes).
    Of many steps, I am researching a JavaScript to locate (gain access) to
    said iTunes Library.xml files (both PC / MAC).
    In this file-search objective the four (4) locations are known; iTunes Library.xml (see below).
    Thanks in advance for your help...
    This is Step 1... the current goal;
    How to construct a full script to address all known locations (4).
    1) enable search when PDF page is entered
    2) search for the appropriate iTunes Library.xml file
    3) if found pass path to "JukeBox" script (in development, future Step)
    4) else... stop
    iTunes Library.xml locations;
    Mac OS X:     /Users/username/Music/iTunes/iTunes Library.xml
    Windows XP     \Documents and Settings\username\My Documents\My Music\iTunes\iTunes Library.xml
    Windows Vista     \Users\username\Music\iTunes\iTunes Library.xml
    Windows 7     \Users\username\Music\iTunes\iTunes Library.xml
    That is the current task at hand......
    Thanks for your feedback!
    ~ ~
    As a reference, further researching Steps are noted below:
    display Artist list
              drill down to said Artist songs
    Display Album Artwork / when available, else JukeBox images.png(s)
    Play music
    Any an All insight is greatly appreciated.
    D~

    JavaScript embedded in a PDF cannot read arbitrary files from a local hard drive, neither can a SWF.

  • Itunes xml file corruption

    I'd like to ask the community if anyone else is having trouble with corruption of their iTunes XML library file?
    Back on October 20th, my iTunes library completely imploded: roughly one third of all songs stopped playing, all my Digital Copy movies refused to play. I had just upgraded my iPad to iOS 6 and pretty much everything imploded. The solution was to basically delete the iTunes XML files, re-install the software and then re-import all my uploaded music.
    Yesterday, I connected one of my iPod Classics and saw the same error messages that started the first round of trouble: there were 7 files that iTunes claimed it could not sync with my Classic because they were the "wrong format". I checked each in turn and they turned out to be from 3 of my 650 or so albums. In each case I could click on the iTunes entry and nothing would play: no error was reported.
    In each case if I pulled up the track information, I could see that the references for these 7 songs had been corrupted. So for example, the track "We Didn't Start The Fire", from Billy Joel's album, "Storm Front", had "Song Information" that said it was actually located in /iTunes/Crowded House/ - no album name or song name were included. Every one of the 7 "wrong format" songs had corrupted "location data" like this. The choice of the tracks that were corrupted appears to be largely random. However, I have noticed that corruption only seems to occur when I add new material to my iTunes database.
    The first instance was a complete meltdown and required a clean re-installation of iTunes - literally hundreds of song entries were corrupted. This time around only 7 seem to have been impacted [though i concede it could be more].
    I tried asking Apple support for help and although they were able to walk me through the repair process, they have been unable to explain why this corruption is taking place. I wonder if anyone has any ideas? For what little it may help:-
    I am running iTunes 10.7(21) on a Mac Mini (OS/X 10.7.5(11G63)) with the 2.3GHz Core i5 and 8Gb of RAM.
    My iTunes Library "XML" file is in my local home directory [default location], but because it's now well over 200Gb in size, all the music files for iTunes are stored in a QNAP NAS [works fine, local Apple folk helped me configure it].
    It's difficult to triage exactly what's happening without having access to something like XMLspy and being able to work through the iTunes XML file piecemeal, but it does look like something during the "add songs to database" process is corrupting that file, and, interestingly, it adds new content fine - it's existing entries that get corruption.
    My music library is not *that* big: the XML file is 15.2Mb on disc, iTunes is currently holding 659 Albums an about 7827 songs.
    Does anyone else have ideas as to what might be causing this? It seems to be a relatively recent development, and since I rebuilt the database completely 6 weeks ago, this most recent damage is definitely a recent thing.
    Suggestions gratefully received.

    The XML file is a readable subset of the data in the main library file. If the library database becomes corrupt the easiest approach is to restore an earlier version.
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    The images are from Windows XP but you get the idea. Your Mac library file may omit the .itlextension.
    See MusicFolder Files Not Added and Super Remove Dead Tracks for tools to catch up with any changes since the backup file was created.
    When you get it all working I'm told Carbon Copy Cloner can do the equivalent of this Windows based backup tip.
    tt2

  • Converting WinAmp (M3U) Playlists Into iTunes (XML) Playlists

    Hi. I was wondering if someone could help me out with suggestions on converting my old WinAmp (.m3u) playlists into usable iTunes (.xml) playlists?
    I have Windows XP Pro (with the latest Windows updates), and a brand new iPod 160 Gig Classic.
    I have used WinAmp as my media player for the longest time. The reason that I haven't created playlists in iTunes is because:
    It took me years to customize these Winamp playlists exactly how I want them (you know how that is).
    iTunes is a huge program that tends to takes up too many system resources on my PC. I have an older PC, and don't have the time or money to invest in a new system, copy files, set it up, etc.
    iTunes somehow modifies an mp3 whenever it is played in iTunes ( I can see that it has been modified in the "Date Modified" column, where my mp3 files are located).
    Historically - up until the last year or so, iTunes has not had too much of a problem faithfully importing my Winamp playlists into iTunes (to be transferred onto my iPod).
    So, I just got off the phone with Apple Technical Support, Tier 2.  I told him that I had the latest version of iTunes (version 10), installed yesterday.
    I successfully imported my 90 Gigs of mp3's into the  iTunes "Music Library" without a problem.
    The problem arose today when I tried to import one of my WinAmp (.m3u) playlists into iTunes, so that I could copy the playlist over onto my iPod. I've done this dozens of times. I've already tried uninstalling and then reinstalling iTunes.
    Like I said, I really want to keep these playlists it took a long time to customize the occurrence and frequency of favorite mp3's into those playlists.
    The technician said that the latest release of iTunes won't work with Winamp (m3u) playlists.  I asked him if he thought it would work again if I downloaded an older version of iTunes. He said that with the new iPod Classic that I have, it will not work with older versions of iTunes (I have no idea why), so that's out. He suggested Googling an "m3u to xml file converter."
    I checked on Google and saw a lot of programs that will convert xml files to m3u file format (for reasons unknown to me), but I haven't had any luck online finding a file converter that will faithfully convert my WinAmp (.m3u) playlists TO iTunes (.xml) playlists to use instead, and make iTunes run smoother. Any suggestions?*
    * Keep in mind that I'd really prefer to convert my m3u playlists, rather than create all new iTunes playlists from scratch.
    Thanks.

    solgar wrote:
    Tried the plug-in with Apple Technical Support. This WinAmp plug-in unfortunately does absolutely nothing.
    I went back an read some of the comments and it sounds like it only works with older versions of WinAmp.
    Try this http://www.topdownloads.net/software/m3u-to-xml-xspf-converter_2_39472.html
    or this python script http://users.musicbrainz.org/~matt/xspf/m3u2xspf
    or http://www.softpedia.com/get/Multimedia/Audio/Audio-Convertors/M3UtoXSPF.shtml
    Not sure this one will work since it is looking like the latest iTunes no longer supports m3u file sbut worth a try see http://www.burroak.on.ca/m3u2itunes.html

  • I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • I moved iTunes folder location, now all my personal song ratings and playlists are gone.  How can I get them back?  All the iTunes files are intact, just in a new location.  Running iTunes 11.1.5.5

    I moved iTunes folder location, now all my personal song ratings and playlists are gone.  How can I get them back?  All the iTunes files are intact, just in a new location.  Running iTunes 11.1.5.5 on Windows 7

    Put everything back the way it was.
    Them move the folder correctly.
    http://support.apple.com/kb/ht1364

  • My music files are "missing".  How do I get itunes to locate the files without identifying each music folder (files are in separate folders under torrent data and I don't want to open each one of them individually)

    Just like the title...  Music files are missing and I don't want to locate each folder individually, how do I get itunes to locate all of the music without taking each music file out from the album folders they're in?

    Hi,
    The article below will explain in general how your iTunes files are organized on your computer.
    Where are my iTunes files located?
    http://support.apple.com/kb/ht1391
    Hope this helps ....
    - Judy

  • Itunes cannot locate my files on the external hard drive - I changed preferences but still not locating songs?

    itunes cannot locate my files on the external hard drive - I changed preferences but still not locating songs?

    This work for the most part:
    https://discussions.apple.com/message/20361846#20361846

  • Can't change itunes library location to external hard drive

    I did have my itunes library location set to an external disk (my time capsule) and this worked great with my macbook pro. However, the macbook pro "died" last week and now I'm trying to set my new replacement imac itunes library to also be the external hard drive. 
    The advance tab on itunes preferences indicates that library location is set as requested however, I can't see any of my music in my itunes window.
    I could of course just copy my music on to my new computer but that'll take ages and I'd rather keep it on the time capsule.
    Many thanks
    Anna

    So the additional step  need to do was make sure the copy files to itunes media folder is unchecked and the go to itunes>files>add to library then select my itunes music folder in my itunes location on the time capsule. Done!
    Answer was found here http://www.macworld.com/article/46248/2005/08/shiftitunes.html

  • Attempting to upgarde itunes and I get an error message looking for "an alternate path to a folder containing 'iTunes.msi' location.  I've searched my hard drive and the file doesn't exist.  What to do?

    Attempting to upgarde itunes and I get an error message looking for "an alternate path to a folder containing 'iTunes.msi' location.  I've searched my hard drive and the file doesn't exist.  What to do?

    This worked...found on a prior discussion:
    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page)...
    http://majorgeeks.com/download.php?det=4459
    From the link above (near the top of the page)....Under 'download locations'   click on 'download@majorgeeks'
    To install the utility, doubleclick the msicuu2.exe file you just downloaded and ran.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Restart your computer.
    Re-download Itunes (latest version form Itunes website) and install.  It worked!

  • When i connect my ipod to the computer a box pops up and say that itunes cannot locate this device, and if the problem persists to uninstal itunes and then reinstall. Well i have my own user on tunes so if i uninstall ituneswill it uninstall on all users?

    when i connect my ipod to the computer a box pops up and says that itunes cannot locate/read this file, and if the problem persists to uninstall itunes and then reinstall, but i have my own user on the computer, so if i uninstall it on my user will it uninstall it on every user?

    Hello BPeery,
    I would go through ALL the steps here:
    iPod not recognized in 'My Computer' and in iTunes for Windows
    Let us know how it goes.
    Hope this helps.
    ~Julian

  • How to import iTunes XML library into MS Acess database?

    I have exported my iTunes data to a library XML file. When I try to import these data to a MS Access database (without the sound files of course) I only get strange and stupid table entries.
    I would like to use MS Access to create more flexible reports of my music collection.
    Has anyone ever imported iTunes XML files into MS Access successfully?
    P.S. An import solution to OpenOffice.org as alternative is also appreciated.

    In iTunes, you can "Export Song List" and one of the other options is to export as a text file. This actually creates a comma or tab separated values file, which is a lot easier to import into Microsoft stuff than the XML file is.

  • How to Parse XML into String in BPEL?

    Hi,
    Can anyone tell me, how can I parse XML into String?
    I am taking input from File Adapter, File adapter is reading that XML.
    Then in assign activity i am using XPath expression(built functions) using XMLParser(),doTranslateToNative() etc.. many functions I have tried but XML is not getting parsed into String Variable.
    Please help me asap.
    Thanks
    Shikha

    Thanks a lot Eric.
    I am trying this, oraext:get-content-as-string('receiveInput_Read_InputVariable','body','/ns3:orders')
    but getting this error
    <bpelFault><faultType>0</faultType><subLanguageExecutionFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is oraext:get-content-as-string('receiveInput_Read_InputVariable','body','/ns3:orders'). The XPath expression failed to execute; the reason was: internal xpath error. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. </summary></part><part name="code"><code>XPathExecutionError</code></part></subLanguageExecutionFault></bpelFault>

Maybe you are looking for

  • Since the software upgrade connecting to hotspot from my iphone with my ipad is not working.

    Since the software upgrade , I cannot connect my ipad2 to my iphone 4s via the phones hotspot.  Regular wifi is ok.  Is anyone else having this problem?  I tried resetting the network settings on the ipad, but it didn't help.  The ipad sees the hotsp

  • I want to set up my time capsule using my existing router.

    The set up guide gives me instructions to open AirPort Utility, select Time Capsule and click continue. When I do it tells me that this requires switching networks, which is exactly what I don't think I want to do. Where am I going wrong?

  • RAC + oratab + sqlplus

    This one should be simple, I'v searched online and just can't seem to find a solid answer for this. After installing a database with dbca on a 2 node Rac cluster, (db_name = SEED, instances = SEED1, SEED2), I'm left with this in /etc/oratab SEED:/u01

  • How to view pictures from usb without uploading it to iphoto

    Im new to macbook pro from pc...i used to view photos from usb or sd card without importing it to computer...all i have to do is insert the sd thru usb and double click on one of the pictures and click the arrow to view the next picture.when im done

  • BAPI Jobs

    Unfortunately our system has many BAPI jobs. Basically these are queries created over infocubes/odses and run in the bacground to create tables. (The table becomes a generic data source to load another cube.) These BAPIs are created via transaction R