Playlist bug is creating thousands of copies of the same playlist over and over

Server Version#: 1.14.1.5488
Player Version#: web player 3.77.4

I rarely use the playlist feature but made one of Halloween cartoons for my kids. I noticed this week that there was over 30,000 copies of the same playlist. So I went about deleting them all and once complete saw more everytime I loaded the playlist screen. It’s leveled off now at 22,241 copies of the same playlist.

I’m wondering if trying to repair my database will fix this? The only way I can delete the playlists is through the web player.

I am also running
plexkodiconnect and see the playlists in kodi Possibly a bug in that is re-adding the playlists as I delete them as kodi stores playlists as a file where Plex stores them in the Database if I’m not mistaken.

Thanks for the help in advance.

This can happen with PlexKodiConnect, unfortunately. Please see here for an automated solution to delete the playlists again: How to automatically delete playlists · croneter/PlexKodiConnect Wiki · GitHub

1 Like

Thank you That helps, should have looked there myself as I thought that might be the case.

So I am trying this, but no go as I cannot get a Playlist ID… I only get this BS, Im about to go to Emby cause there are now 250K playlists and my server is running like ■■■■ because of this. I completely uninstalled both Kodi clients from my shields. I got all the other info but cannot get a Playlist ID so the script won’t run. I would even be fine wiping ALL playlists as I only had 2 to start with. Can I use a wild card instead of an ID to just wipe it all?

This is what I see in the URL Pertaining to Playlist.

playlist?key=%2Fplaylists%2F202078

I had to mess with the script a bunch to get it to work. It would also time out and I’d have to change my playlist id everytime it timed out as the original one I had was deleted in the original run.

It didwork but note I had to switch to Python 2.7 as 3+ wouldn’t run properly.

Your playlist from that URL is the 6 digit number only if I remember correctly. So it should be 202078

Good luck

I found one that is a delete ALL and it seems to be chugging away as plex is already much more responsive and I am getting Response [200] from the script Im using which seems to mean accepted (not sure since I don’t do much with python or APIs). But guessing this is one playlist at a time so probably gonna take a while since I have over 250K playlists.

Also, while this is running, I can’t even access the playlists, so that’s something I think lol.

Script I found: https://github.com/blacktwin/JBOPS/blob/master/utility/plexapi_delete_playlists.py

Thanks for the tipp with Python v2.7. I couldn’t get it to work with Python 3 either.
I also had the problem that it would not work with my Plex Server only in LAN mode. I had to make the server reachable from the internet and use that public router IP address and port as well as the token displayed from the web app instead from the LAN address before the script would run properly.

I have the same problem, but can’t seem to solve it yet.
I deleted about 300K playlists (I had only one unique playlist) from my Kodi folder.
However, the scripts to delete the playlists from Plex are not working.
No matter what script I use, I always get this response:

requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='xxx.plex.direct', port=xxxxx): Read timed out. (read timeout=30)

It happens when using my LAN address/port or an external address/port.
I tried with python 2 and 3. Does anyone have an idea what I could try?
Thanks in advance.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.