PlexPlaylistImporter
PlexPlaylistImporter copied to clipboard
Script appears to work, but no playlist in Plex
Script seems to work. It says the items were imported. But nothing shows up in Plex.
`D:\Video\PlexPlaylistImporter-master>python PlexPlaylistImporter.py -p "D:\plexdata\Plex Media Server" D:\Video\PlexPlaylistImporter-master\SummerSongs.m3u SummertimeSongs 75 items imported
D:\Video\PlexPlaylistImporter-master>`
Same for me. Sometimes it works, other times not. No obvious errors. Is there a limit to how many items can be in Plex playlists in total?
I've been swamped with work and unable to update the software for the latest version of the plex server. It stopped working a few months ago, so that is most likely the problem. I keep trying to get to it and getting sidetracked. - And if I recall, there was a limit on the playlist length, but I forget what it was. Maybe 255? Maybe 999?
Since I successfully imported a couple of lists of over 2000 items, but not some of only 100 items, if there is a practical limit, I suspect it applies to the total number of items or may be characters in the full path name.
I currently have well over 10,000 songs across 9 playlists. But I'll try putting max sizes on my exported playlists and see if that helps at all. I also wonder if turning on debug mode on PMS would help ascertain the issue.
Thanks for the work dakusan. Looking forward to a new working version.
I notice if you create the playlist first in plex with a random song, then run the script on that playlist it works everytime.
Awesome! Thanks for the tip, @Doonut, it works!
@seanfilidis @Doonut It looks like the fix no longer is working. Have you guys found any other workaround?
With this issue, the importer is still creating a playlist in the DB, you just can't see it in Plex. I'm not sure of the reason why you can't see it -- at a first glance the important fields seem to be correct but I'm not familiar enough with the Library db to troubleshoot it further (the schema is massive).
Many people are probably trying this importer, having this issue, and then trying the manual playlist fix after that. It won't work at that point because the importer script has already created the invisible playlist that's not showing up in Plex. Any subsequent runs of the script are just going to update that invisible playlist. You have to make sure that you create the manual playlist first; then the importer will see it and update the songs in it rather than creating a new one.
I can confirm that the importer still works fine in the latest version of PMS, except for the new playlist creation portion--something's broken there.
Can confirm. It works after the following,
- Create a new playlist with the name you want first, shut off Plex, backup the db
- Drop
index_title_sort_naturalsort
index from the SQLite3 db - Run the script
- Start Plex again