I’ve been trying to import iTunes playlists for the past couple of days. Reading posts here and other sites I was able to get Plex to import the XML without errors in the log file but no playlist appeared.
So, I moved on to attempting to import m3u files. I was able to get that to happen see here on how to do that.
While working on the m3u import I noticed the test tracks I was using had star ratings. I realized the stars came from the iTunes XML import.
This afternoon I decided to import my full iTunes Library XML to get the ratings. Suprise, Suprise all the playlists imported. I’m not sure if the m3u import had something to do with it or not. But, it does seem coincidental.
Here’s what I did to import my iTunes Library.xml into Plex
Copy iTunes Library.xml file in the Music folder specified in Plex. Set when you created the Music Library.
Prepend file://localhost to the music file path names.
All spaces in the filename should already be replaced with %20
Example: file://localhost/{YourPath}/Music/Some%20Artist%20Name/Some%20Album%20Name/01%20Song%20Name.mp3
Make sure Music Folder line near end of the file changed to have Linux Path
Example: <key>Music Folder</key><string>file://localhost/{YourPath}/Music/</string>
In Plex highlight your Music library and you should get three dots on the right. Click them and Choose Import from iTunes.
The first time you will need to enter the pathname to the XML file.
Click Import iTunes.