3

I recently bought a QNAP NAS (TS-251) and everything is working fine. I'm now on the iTunes part of my setup and here is my tricky situation.
I have a personal library I'm backuping that I would like for other users to use it. But… in iTunes Library.xml, files locations are absolute from the path of my external hard drive, something like that:

<key>14225</key>
        <dict>
            <key>Track ID</key><integer>14225</integer>
            <key>Size</key><integer>4435969</integer>
            <key>Total Time</key><integer>184398</integer>
            <key>Year</key><integer>1968</integer>
            <key>Date Modified</key><date>2014-09-02T15:50:51Z</date>
            <key>Date Added</key><date>2010-03-02T14:39:54Z</date>
            <key>Bit Rate</key><integer>192</integer>
            <key>Sample Rate</key><integer>44100</integer>
            <key>Play Count</key><integer>2</integer>
            <key>Play Date</key><integer>3491776434</integer>
            <key>Play Date UTC</key><date>2014-08-24T23:53:54Z</date>
            <key>Skip Count</key><integer>2</integer>
            <key>Skip Date</key><date>2014-09-02T15:50:56Z</date>
            <key>Rating</key><integer>100</integer>
            <key>Album Rating</key><integer>100</integer>
            <key>Album Rating Computed</key><true/>
            <key>Persistent ID</key><string>150197A413DBC3FB</string>
            <key>Track Type</key><string>File</string>
            <key>File Folder Count</key><integer>-1</integer>
            <key>Library Folder Count</key><integer>-1</integer>
            <key>Name</key><string>Light My Fire</string>
            <key>Artist</key><string>Jose Feliciano</string>
            <key>Genre</key><string>Latin</string>
            <key>Kind</key><string>Fichier audio MPEG</string>
            <key>Location</key><string>file://localhost/Volumes/EXHD/Music/-/Jose%20Feliciano%20-%20Light%20my%20Fire.mp3</string>
        </dict>

and this line is actually kinda problematic:

<key>Location</key>
<string>file://localhost/Volumes/EXHD/Music/-/Jose%20Feliciano%20-%20Light%20my%20Fire.mp3</string>

As planning for others to pick the iTunes Library.xml directly from the NAS, the file Location path needs to be from the NAS and not from my personal external hard drive.

As I'm backuping my drive every hour via ChronoSync (like TimeMachine in some way), I was thinking about replacing every Location path with the one of the NAS.
Is it possible, and if yes, how can I do it? Because I have 60000+ items in my library, willn't take ages to replace it via an Apple/bash script?
Or maybe you have other suggestions… every help welcomed!

PS: Already tried the iTunes server from QNAP but really not convenient… You have to manage all your library from a poorly developed web interface, and that will be a duplicate from my library.

3
  • 2
    I'd hate to just say "Give up now" but actually… Not only are the paths in the xml file absolute, but the associated .itl file will not pick up any changes in the xml automatically. You would have to break it & make it rebuild. See apple.stackexchange.com/questions/163594/… If you can find an even vaguely usable server setup, that may be your solution.
    – Tetsujin
    Commented Dec 6, 2015 at 13:08
  • @Tetsujin argh, damned…
    – flks
    Commented Dec 6, 2015 at 14:55
  • I'm going to copy this over to an answer, for future Googlers. If you do find a server solution, come back & add that as another answer - cos this is really not an easy one; I've been keeping multiple computers manually synced using a remote library for years, & have never found a good way to automate it, which tends to mean I do it about once or twice a year :(
    – Tetsujin
    Commented Dec 7, 2015 at 7:58

2 Answers 2

1

Link the library from the NAS to the local machine. I wrote a hint about this on Mac OS X Hints many years ago and I still use it (but in my case, I use a dmg to store my library on).

http://hints.macworld.com/article.php?story=2003041911193115

(Should be available on Wayback Machine as well)

0

Adding as an answer, even though it's in the negative, for future Googlers…

I'd hate to just say "Give up now" but actually…
Not only are the paths in the xml file absolute, but the associated .itl file will not pick up any changes in the xml automatically. You would have to break it & make it rebuild.

See iTunes: Moving iTunes Files (Self Managed)

If you can find an even vaguely usable server setup, that may be your solution.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .