PlexPlaylistImporter icon indicating copy to clipboard operation
PlexPlaylistImporter copied to clipboard

Script appears to work, but no playlist in Plex

Open seanfilidis opened this issue 7 years ago • 9 comments

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>`

seanfilidis avatar Oct 24 '17 18:10 seanfilidis

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?

Boh1 avatar Oct 25 '17 01:10 Boh1

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?

dakusan avatar Oct 25 '17 15:10 dakusan

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.

Boh1 avatar Oct 25 '17 15:10 Boh1

Thanks for the work dakusan. Looking forward to a new working version.

seanfilidis avatar Oct 25 '17 19:10 seanfilidis

I notice if you create the playlist first in plex with a random song, then run the script on that playlist it works everytime.

Doonut avatar Dec 02 '17 15:12 Doonut

Awesome! Thanks for the tip, @Doonut, it works!

seanfilidis avatar Dec 04 '17 19:12 seanfilidis

@seanfilidis @Doonut It looks like the fix no longer is working. Have you guys found any other workaround?

winghugs avatar Jun 25 '18 23:06 winghugs

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.

eyevandy avatar Jun 12 '19 14:06 eyevandy

Can confirm. It works after the following,

  1. Create a new playlist with the name you want first, shut off Plex, backup the db
  2. Drop index_title_sort_naturalsort index from the SQLite3 db
  3. Run the script
  4. Start Plex again

Still34 avatar Mar 07 '20 14:03 Still34