Run command – bash cmd + file path for YOUR edited version of the script, it needs to be on your synology NAS. Notifications – this part is pretty self explanatory. So having it run daily makes sense to me because I export the m3u files to a specific folder and forget about it, when ever I decide I need the updated playlists in plex (every other month) I can just run the POSTMAN calls and the latest m3u files already formatted are in place ready to be used by POSTMAN. This varies between different people, I have it run every day because I update my playlists often and export them from my music app where I actually manage my entire music library. This is where you set how often you want this script to run. User is a tricky one, depends on how you setup the users permissions… I have one user with admin rights, so I used that.Įnable needs to be ticket on for the script to be “active” or enabled. Task is where you give this any desired identifying name for this task. On your synology NAS UI, if you go to Control Panel > Task Scheduler > Create > User Defined Script, which should open a pop-up window called Create Task. If you can put 2+2 together and was able to follow the above, you should not have problem’s. Use at your own risk, my intent and script aren’t ill intended but I do need to make this disclaimer before someone accidently clears their drive and blame me. Please be careful and follow the instructions accordingly, nonetheless running bash scripts you don’t understand is NEVER recommended for security reasons which can result in security breaches or even full data loss. I wrote a small bash script for those who aren’t necessarily programming savvy and would like an automated solution that processes. Here is my contribution addressing the above tutorial’s Step 2. Also a big thanks to user Technobrat for elaborating in the comments below how to automate step 2, with a custom Bash script which processes the. I know it’s tricky but I hope this works for you!īig thanks to Reddit user u/KarmicCamel who figured it out first for a local Plex installation, and for u/jetrolorko/ for pointing us in the right direction for a remote Plex installation. Now, in the “Query Params” area, you can just change ‘playlist.m3u’ to ‘playlist2.m3u’ and press send again… and again… to import all your playlists. If it didn’t work, there is a chance has expired, see if you can start a new song and check if it’s still the right one. If all went well, you should see a green “200 OK” text appear below in the ‘response’ box, and your playlist should be added to PLEX! Click ‘New’, select “http”, and Change the ‘GET’ to ‘POST’ in the left panel, paste the url, and click the blue ‘Send’ button.You will need to create a free account first. Run “ Postman” ( Download, or run online).5&path= /volume1/Plex/Library/Music/iTunes Media/Music/playlist.m3u&X-Plex-Token= 97g4cDJq7dzJz8aUmvyh So, as an example, it should end up looking something like: Playlists/upload?sectionID= &path= Playlist.m3u&X-Plex-Token= m3u Playlists to plex with Postmanįirst, carefully prepare/compile the following url: TIP: You can always use ‘find and replace’ to change force the directory in front of all tracks. Important! All the directory slashes must be forward slashes in this file(!) because your NAS is a unix system. If you open/edit them with a text editor, it’s content should look something like this:.m3u files and should preferably be localized in the directory of your Plex music library There are a few prerequisites to allow the proper import: Step 2: Prepare your playlists to import them to your Plex library – Also at the very end of this URL, you will find your unique and temporary Token: …&Plex-Token= 97g4cDJqi4APq8aUmvyh You can see that the url in your browser has also changed to something quite complex.In this XML there is one thing you need to find and write down the number X: librarySectionID=” X“ (that X should be a number, e.g. Copy the path to your music root directory and write it down somewhere. You can now see the full path to your music directory and this specific song /volume1/Plex/Library/Music/iTunes Media/Music/(artist/album/)song.mp3.Now, in the ‘play’now playing’-bar in the bottom, press the 3 dots and select ‘ get info‘ Go to your music library and play a song.First of all, go to your Plex installation directly on your NAS.Step 1: Get some vital library information from Plex This guide -with a few tweaks- should also apply to other environments if you follow the logic/idea of it. It requires some technical skills though. There is a way to import your music playlists to Plex, hosted on a Synology NAS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |