For those that run plex on a linux box with media mounted from a NAS here’s a rough sketch of importing playlists created on Windows [with mapped drives] using the Windows box.
Shutdown plex
Copy plex database to Windows machine
Condition playlists to use same pathing structure as the linux box [e.g. change M:\Music to /mnt/Music …]
Run this tool and navigate to the import part
Import playlist(s) until done then cancel/quit
Rename the plex database on linux
Copy the plex database from Windows to linux
Change ownership to plex
Change permissions to 644
Start plex
Enjoy playlists
I use Foobar2000 on a Windows box to manage playlists from the NAS as mounted drives then condition and load into Subsonic on the linux box.
Have wanted to give plex a music try but until I played around with this tool and found a procedure I could not ‘easily’ [at all, really] get my playlists into plex.
@estaman said:
Not quite sure what you mean. I’ve included a screenshot of the m3u file and the properties from plex.
That is the problem. Plex has the files mapped as F: drive. Your playlist is using the network path \Bob. My script cannot handle this situation. You can do a simple find and replace in the m3u file and change all the \\Bob to F:.
thanks for an awesome set of tools!!! Is there anyway to remove genre tags? I didn’t want to have to refresh my library and i heard you could do it by running a script and editing the database? Thanks again moviefan!
Hi MovieFan. I’ve used your scriptset successfully in the past to import .m3u music playlists into Plex. I was trying to do the same today, but after importing the file, nothing happens. When trying to pull a list of my existing playlists, your script responds with “there are no playlists in this database”, although it is the correct file and I am running this with administrator rights. Upon a quick check, your script says it has found errors within my database. I’ve tried deleting the existing playlists from within Plex and fixing the database-errors with a cmd command you’ve provided someone else in the past (cmd> sqlite3 …), but to no avail.
Did you run into this in the past? If so, how can I fix this, if not, may I send you the database to check what’s wrong with it?
I have not run into this. But I have run into an issue with playlists where it has issues generating the thumbnail for the playlist after importing the playlist. This will sometimes cause the playlist to not be usable. I haven’t figured out what is causing that issue.
Your issue, is new. Yes, if you can PM me your database, I can look into it.
Hi MovieFan, thanks for all the hard work in providing such a useful tool. I ran into a problem similar to what you described above. After importing a playlist, it exists in Plex but with no tracks and no thumbnail. I attached the debug files and before and after screenshots. They won’t allow .sql files to be attached, so I renamed the extension. I cannot see anything obviously wrong. Please help…Tx
Looks like the import didn’t work. My guess would be those 2 files you have with accented characters shown near the bottom of playlist_import.txt. You see how they don’t line up with the rest.
It does not seem to be the 2 files you mention because I created a test playlist with only 2 tracks that contain no special characters and it still does not work. See attached:…Tx
The path to the file is the same as used by Plex? x:\MusicArchive\
Go to the album. Hover over a song, then click on the 3 dots icon, then select info. A window will come up with the path. Make sure it matches exactly with the path in the m3u.
Tx MovieFan, such a small difference but it caused the problem. The drive number in Plex is capital X:\ and in my playlist it was small x:\ Fixed it and now it is working 100%. Thanks again for a wonderful tool…Regards
Thanks for the great tool! I have found a bug. The tool will fail to import a playlist if the playlist file name is the same as an album name. If I rename the playlist file name to something unique, I’m able to import.
@joseluispino said:
Thanks for the great tool! I have found a bug. The tool will fail to import a playlist if the playlist file name is the same as an album name. If I rename the playlist file name to something unique, I’m able to import.
Interesting. I don’t see how the playlist name and album name impact each other. I’ll have to investigate. Thanks for the report.
@joseluispino said:
Thanks for the great tool! I have found a bug. The tool will fail to import a playlist if the playlist file name is the same as an album name. If I rename the playlist file name to something unique, I’m able to import.
Follow-up. You are right. This is so odd. I have no idea why using the name of an album cause issues. Time to put on my thinking cap.
Thanks a lot for this tool. I have been looking for a tool to import playlist into plex and this tool works fine.
I have imported 8 playlist without problem but 1 playlist is imported without tracks (only this playlist). The path into this playlist is the same way than another 8 playlists.