Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script appears to work, but no playlist in Plex #14

Open
seanfilidis opened this issue Oct 24, 2017 · 9 comments
Open

Script appears to work, but no playlist in Plex #14

seanfilidis opened this issue Oct 24, 2017 · 9 comments

Comments

@seanfilidis
Copy link

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

@Boh1
Copy link

Boh1 commented Oct 25, 2017

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?

@dakusan
Copy link
Owner

dakusan commented Oct 25, 2017

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?

@Boh1
Copy link

Boh1 commented Oct 25, 2017

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.

@seanfilidis
Copy link
Author

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

@Doonut
Copy link

Doonut commented Dec 2, 2017

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

@seanfilidis
Copy link
Author

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

@winghugs
Copy link

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

@eyevandy
Copy link

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.

@Still34
Copy link

Still34 commented Mar 7, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants