Awesome! Glad you got it going!
Webtools is a Plex 3rd party plugin commonly referred to as “Unsupported Apps”.
I carefully created numerous M3U playlists in WMP, thinking they would be recognized by PMS. I installed PMS and configured remote access, with trepidation about having to adjust my router settings. I finally got everything working, including control through Alexa. Then I realized all my playlists were not available. I researched importing M3U playlists into PMS, and I tried WebTools with no success. I’m not going to recreate all my playlists again in PMS. I’m afraid the lack of ability to import M3U playlists is the last straw and I’m planning to abandon PMS because of the shortcoming. The adventure with PMS was all a waste of my time.
Its definitely possible to get playlists imported and I’m happy to help if you haven’t given up on it. I went through several trial and errors as noted above in this thread and eventually got it working. The biggest gotcha is the path referenced in the .m3u
file. Can you send your setup and a sample of one of your playlist files?
I’m going absolutely batty. Nothing you guys are mentioning are appearing for me. I’m a novice, so don;t know python… all I wanted was to get my google play music playlists into plex so I can use the darn thing. sigh
There’s no .XML to look for the Plex Pass Token to even try postman
I tried doing the soundiiz to upload to plex, it won’t connect.
Take a look at this link. It guides you through how to get the token. This is a good guide to get you going, if you haven’t seen it yet.
I would sign up for the lifetime pass if they would just make this a feature. Importing playlists isn’t an option, this seems like something Windows would have done 15 years ago. Why the hold out?
Soundizz does work well but sometimes it does not create playlists completely. I opened a ticket with the CEO and he said that its due to the way searching in the plex api works. I have 350k songs and sometimes it will not find the songs that I can clearly see within the plex web app. Still paying for Soundizz though since i like to being able to sync playlists from deezer and spotify even if it only gets 60% of the songs
If I can add my two cents worth: we need a way to import M3Us. I have a slew of M3U playlists I used to listen to with WMP, and now I want to use them in plex. But recreating them one song at a time is excruciating.
I agree! They should have something in the UI to handle this. Having to use Postman or other applications such as that to perform this action is a bit too much to ask of the user base.
I’ve just downloaded and trialed Plex but not being able to import playlists is a complete show stopper. I’m a bit gob-smacked to be honest, this should be basic functionality. I’ll try a different music server instead so.
Plus another one here for adding m3u playlist support, please pretty please!
I’m not very familiar with PostMan and web APIs (though I am reasonably good in SQLite and Python - I cam here wondering if I could inject playlists into the DB directly, but it looks like inserting into the metadata_items table is scary).
There are a few suggestions on this thread that m3u import is partially/mostly implemented already, so I hope this isn’t too big an ask! In the mean time it looks like I need to get my head around PostMan…
Many thanks to previous posters, particularly @onemojofilter and @gregchak
Well, further to my post earlier today (and, frankly, somewhat to my surprise) I’ve got m3u upload to Plex via an HTTP Post API request working nicely in Python, without having to learn how to use Postman. I’ve put some skeleton code below in case it’s useful to someone in future.
(This is a bit simplified; eg. in reality I’ve got a for
loop which auto-creates about 200 playlists from a python list. of m3u files, but this snippet is working on my machine, so you get the idea hopefully.)
import requests
ip = '192.168.0.15'
sectionID = 3
path = '/media/main/music/library/playlists/2005 - 20th Century English.m3u'
token = 'yzczcb1aEa8xqg1M1jxt' # Get this manually from front-end for now
url = f"http://{ip}:32400/playlists/upload?sectionID={sectionID}&path={path}&X-Plex-Token={token}"
x = requests.post(url)
A couple of notes on this:
-
As you can see, the only dependency is the
requests
Python library, which I think is pretty much a core python component, included in most python distributions. -
If I were a Proper Programmer I could probably get python to obtain its own token programmatically, but I can’t be bothered, so I’m just getting it from the Plex front end as described by @onemojofilter upthread, and hard-coding it here.
-
This worked for Plex 1.21.2.3943 (I think that’s current as of today?), running on Ubuntu (via Snap, FWIW). I’m using Python 3.9 but I daresay most Python 3 installs would be the same. I ran the python code on the same Ubuntu machine as Plex is running on.
-
My Plex music library is in
/media/main/music/library
- ie theplaylists
directory containing the m3u files is within the Plex music library. -
All the tracks in the m3u files are already scanned into this Plex library
-
The m3u files are populated with absolute paths (*nix format, ie.
/
rather than\
etc). -
Both the m3u file paths and the paths to the tracks listed inside the m3u files have got spaces and other nasties in them; Plex seems happy enough.
-
Plex didn’t like it when some of my m3u lines were enclosed in quotes; I had to remove the quotes.
Hope that helps someone one day. This has saved me so much time!! V grateful for this thread.
This is superb thank you
You would not believe how many threads I have found with the same problem - searching, searching, searching and EVERYONE seems to have problems with not having there playlists from iTunes import into Plex…
I have imported itn=unes as instructed, have set the path etc for the XML file, all is working innPlex and PlexAmp…BUT NO PLAYLISTS…
The default playlists in Plex are almost empty and pretty useless… I have MANY playlists in iTunes, but can find no way to get these imported…??? !!!
Come on Plex, I have a PlexPass… my music (from iTunes, on a Mac) is seen, imported andnplays… but is a random jumble of individual songs and albums…
I want my playlists…
MANY PEOPLE are asking for the same thing…
PLEASE PLEX - Give us a reply and solution… this has been going on for YEARS!!!
HOW do we import a working PLAYLIST from iTunes???
PLEX!!! PLEASE…as a paying customer…I really should be able to import my playlists. Can’t call yourself a media whatever and limit to just movies and not music. What good is music without a PLAYLIST! You can’t expect people to really create a playlist from scratch one by one or dynamically off of a failed match.
Everyone should submit tickets to plex asking for this. forget the forum. ask plex directly. swamp the ticket system
The Soundiiz suggestion does not work as intended. Soundiiz is designed with the purpose of Copying a Playlist from one Music Streaming Service to another as long as the Metadata between the two services matches 100%. So if you have a bunch of MP3’s in iTunes and try to use their services to import your playlists into Plex, it will most likely not import all the songs as the Metadata may not entirely matchup with Plex’s built in music service.
Even if you import all the MP3’s into your Plex Library first, it will not matter.
This same issue will happen with other like minded Services, such as Musiconv, so be aware of this prior to paying extra money for any of these 3rd party online services/tools. Sure, if your metadata matches perfectly AND those songs are available on the Target music streaming service in the first place, then you may experience a perfect import. But there is no guarantee, especially when dealing with your own MP3’s.
I confirmed with Soundiiz directly, their service does not actually deal directly with the Files themselves at all. It just tries to match up the original playlist metadata to a target services playlist system metadata when importing.
Shawn
Where do I go to vote for an m3u playlist import feature be added to Plex?
I like the idea of adding the playlist.m3u file to a specific directory/folder where the Media Server scans it and auto imports it.
I tried postman method but could get it to work. I use Synology for plex and using postman on a pc. I tried pointing both to windows and linux directories (i.e., W:\Folder1\Folder2… vs. /volume1/folder1/folder2).
I also tried including the playlist within the directory that is available to plex for scanning, like @gregchak & @jeffreyabr discussed earlier.
I always get the same response on postman:
<html>
<head>
<title>Not Found</title>
</head>
<body>
<h1>404 Not Found</h1>
</body>
</html>
Both my pc and nas are on the same local network. I used the guide on reddit you referred to and pasted the URL to postman.
I have no experience using postman, so that I might be doing something completely wrong.
Any ideas?