iTunes Playlists can be seen in the logs being imported from the iTunes Library.xml file, however these playlists are not showing in the user interface on Plex Web or Plex for Mac. The same is also true when viewing through https://app.plex.tv/desktop#.
I managed to get playlists to appear in the sidebar menu after manually creating one but no iTunes playlists were present. Right clicking the three dots and choosing Import from iTunes... produces the following (non-descriptive) error. New logs attached: Plex Media Server Logs_2020-02-28_21-41-35.zip (7.5 MB)
Trumpy81 and I set out to see if we could make iTunes data import on Linux
He had a Windows machine
I have no Windows machines. I am strictly Linux.
In order for the One-Time import of the SIMPLE playlists (Smart Playlists have never been supported)
a. I created a windows directory map emulation (inclusive of the âC:â device name)
b. At the bottom of that map tree, the final linkage pointed to where the real media began
c. There is another element Iâm forgetting but, if I did the exercise again, I will probably remember it.
I have never tried Mojave. I only recently was able to setup a Mojave VM after moving to VMware.
Ok @ChuckPa, let me re-phrase my question. I understand this has worked on Windows (and on Linux with some hacks). Have you been able to perform an import where the iTunes XML file was modified for a non-Windows OS filesystem (with no emulation)?
Iâm trying to ascertain why Plex is not finding any files belonging in the playlist whatsoever when the XML was created on the same Mac using iTunes. I just want a onetime import of simple playlists as a migration from iTunes.
Thatâs my understanding as well which only makes it more unusual this is not the case.
I take it didnât work without this prefix. Does Plex expect this prefix to find the files correctly? I noticed in an old iTunes Library XML (version 11.0.5) made on Windows thereâs no forward slashes.
In your example I can see thereâs no URL encoding (%20 for spaces) yet both my Windows and macOS version have this. Should I correct this as well?
Yes, Plex does expect to find the files just as referenced in the XML imported from iTunes. If it canât find it in an existing media path, it has no means to attach it to an existing âmedia itemâ (the ID number)
On Linux, unless a pathname is quoted, % notation will be processed as hex in the shell & file system. PMS itself should expand it out to a space character anyway. /a%20b/ == /a b/ (there are exceptions to the Hex vs Octal notation rule)
Since I donât have Windows now (not even a VM) I wonât be able to examine what Windows iTunes does. If you can help me understand how to setup and then (most importantly) undo any changes to my Mojave VM, Iâm willing to look at the resultant names / path names used there to construct better editing.
So I can confirm the files referenced in the iTunes XML are indeed in the same location. They were downloaded in iTunes, can be played in iTunes + Plex and their location can be shown from iTunes + Plex (no error).
Looking at the logs, Plex appears to be doing this.
Feb 28, 2020 21:41:04.691 [0x7000073fb000] WARN - Could not find path: /Users/terfex/Music/iTunes/iTunes Media/Music/Pink Floyd/The Division Bell (Remastered)/1-11 High Hopes.m4a
The file however whilst not claimed to be found by the playlist importer (again already seen by Plex as a valid file when playing) can be found in shell command:
ls -lh '/Users/terfex/Music/iTunes/iTunes Media/Music/Pink Floyd/The Division Bell (Remastered)/1-11 High Hopes.m4a'
-rw-r--r--@ 1 terfex 16M 8 Feb 02:33 /Users/terfex/Music/iTunes/iTunes Media/Music/Pink Floyd/The Division Bell (Remastered)/1-11 High Hopes.m4a
Certainly. It would be probably best we either take a VM snapshot or a Time Machine backup first. Are you using VMware Workstation Pro 12? Player does not have a snapshot feature so youâd need to make a copy of the VM files to restore or duplicate.
To recreate the issue should be as simple as the following:
Open iTunes (to ensure a library is created
Ensure an XML file is created
Add some songs to the library and to a simple playlist.
Close iTunes
Start Plex Media Server and ensure iTunes plugin is enabled. I also specifed the file path for the XML file. If not already enabled, restart Plex Media Server.
Wait about a minute and download logs from Plex Media Server. Youâll note Plex is already trying to import the playlists but none appear in the UI.
Create a playlist manually.
Use the three dot just below search to Import from iTunes.
After the import runs, likely with an error. Download logs again from Plex Media Server.