mrsilver76 / itunes_playlist_exporter

A script which connects to iTunes and exports all playlists in m3u format. It can also (optionally) adjust the paths of playlists to support NAS drives and upload them to Plex.
GNU General Public License v2.0
16 stars 0 forks source link

Potential issue connecting securely to Plex server? #19

Open BmoreKrisB opened 2 months ago

BmoreKrisB commented 2 months ago

Hello,

I apologize if this is not the correct place for this but I am attempting to use the script but it is failing when testing to connect to the plex server. I am running the script from my Windows 11 PC on the home network.

My Plex Media Server is on a Synology NAS and I am using URL for the "Const SERVER" found there and is similar to: "http://XXX.XXX.X.XXX:32400/web". I have attempted to use https and http and remove the "/web" as well but all options fail.

For the ""Const TOKEN", I followed the instructions from the Plex site and copied the text from the URL after viewing the XML of an item from my library.

Based on the information provided, is there anything I am doing wrong or should change? Any additional information I should provide?

BmoreKrisB commented 2 months ago

Before closing this issue I would like to provide an update as I was able to troubleshoot and resolve the problem. For my initial issue a Plex setting was not allowing the script to connect to the server. I had to navigate to Plex Settings -> Network and change Secure Connections from "Required" to "Preferred". This with the "Const Server" of "http://XXX.XXX.X.XX:32400/" allowed for the connection to occur.

From there, making additional modifications to the script to ensure it reads from the NAS to import the playlist was done and worked to perfection.

Thank you Mr. Silver for the great script!

mrsilver76 commented 2 months ago

Glad to hear you got out working.

You might be able to avoid making the change to your server settings by modifying the code to add -k to the curl command to disable strict certificate checking.

I’ll have a play and report back.