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.