Synology, iTunes Server, and Plex Media Server

I've been searching and reading on the forums and Google but either I'm too stupid to understand what's been written or my question hasn't been definitively answered (and I'm willing to concede that the former is the more likely scenario).

 

I've got a Synology DS412+ running DSM 5.1-5004. I've installed the iTunes Server package (1.3-2361) and the Plex Media Server (v0.9.11.4.739-a4e710f).

 

I created a share called Music and under it created a folder called iTunes. I then copied my entire iTunes folder structure from my PC to the NAS, including all the "iTunes Library*.*" files.

 

I then went into the Plex Media Server configuration > Channels and checked the "Enable iTunes Channel" checkbox. In the Advanced Settings I entered "/volume1/Music/iTunes/iTunes Library.xml" into the "iTunes Library XML Path" field.

 

Finally, I went to DSM and stopped and restarted the Plex Media Server.

 

But I still don't see iTunes under Channels.

Check the permissions.  Remember,  Plex is an unprivileged user.  It cannot see any media unless you grant it access.  By default,  Linux doesn't permit one user to see another's files.

The so called "iTunes channel" only woks on Mac OSX and Windows... because it needs Apple's iTunes running, which works completely different from the iTunes server on Synology (I can't call it Synology's iTunes server because is not theirs, its open source software which you can install anywhere).

What the "iTunes server" does is present your library to the real iTunes (and I guess to any other program that uses the same mechanism).  Apple's iTunes changed the way it works sharing content (a long time ago) and that new mechanism is what Plex uses.

@rberber said:
The so called “iTunes channel” only woks on Mac OSX and Windows… because it needs Apple’s iTunes running, which works completely different from the iTunes server on Synology (I can’t call it Synology’s iTunes server because is not theirs, its open source software which you can install anywhere).

What the “iTunes server” does is present your library to the real iTunes (and I guess to any other program that uses the same mechanism).  Apple’s iTunes changed the way it works sharing content (a long time ago) and that new mechanism is what Plex uses.

Hi @rberber ,

did you find the solution for the Itune chanel ?
I have same problem

Itunes 12.3.2.25

Many thanks in advance !

Wouldnt it be easier to just add the iTunes folder to your music library in plex? (volumex/iTunes/iTunes Media/Music) Just like you do with your other media…
Works pretty well for me in Plex and iTunes. No playlist but i dont use those anyway.

I finally got my iTunes to integrate with Plex on my Synology 1815+ by using a soft link to match the path that the iTunes library XML file is trying to find the actual files.

First I copied my Music Folder from my Mac to the following folder on the Synology:-
/volume1/userData/Music

Then set the the “iTunes library XML path” found under channels in the server settings to the following:-
/volume1/userData/Music/iTunes/iTunes Library.xml

Also make sure that you tick “Enable iTunes Channel” and do a server restart.

Now you have to mimic the folder path that the iTunes Library.xml file is looking for which is:-
/Users/%username%/Music/iTunes (this is the standard location for MacOSX)

SSH into the Synology as root and create the following folder structure:-
/Users/%username%/Music

Create the following soft link using this command:-
ln s /volume1/userData/Music/iTunes /volume1/Users/%username%/Music/iTunes

Recursively change the owner of the “Users” folder to plex using this command.
chown R plex:users /Users

NOTE: replace %username% with your MacOSX login username.

1 Like

thnk i will try

For what it’s worth. I have this in my music library folders: /volume1/share/iTunes/iTunes Media/Music
And i am using “\NameOfNas\iTunes” path as the folder in iTunes it self.
Works pretty ok. iTunes updates lib when i add music to my devices, Plex catch the added files. I don’t use the “iTunes library XML path” under Channels

Bulk editing the XML replacing the file string with the new location to your media files on Plex host works as well, no need for symlinks.