first time posting here…
i found a way to force create a smart collection. it apparently didn’t take. any time i scroll down collections, anytime i get to the letter T the system tells me “something went wrong, and unexpected error has occurred”. i can f5 and it all shows back up again, so i’m hoping it’s not too detrimental. if i access plex through client (my phone or tv) i can scroll all the way with no issues.
is there any way i can delete the collections tab (willing to start from scratch on that end), or is there a file i can edit that would delete it from the system? i’ve had people suggest python links, but it’s all gibberish to me.
thank you for your time
Is this only on the collections tab? Delete option should be there from clicking on menu from bottom right of poster
(if you had collections already set to show in library tab. That is. I probably would not change that setting else your library tab might be in same state)
no. since the collection poster is also in T under movies, it does it there as well. like if i click on U to scroll passed it, it’s fine, but if i slowly scroll up, once it hits the row where the collection is, i get the same thing, " unexpected error".
since there’s no “select all” under the collections, i can’t scroll to where it is to delete it. that’s why i was hoping there’s some kind of blanket delete i can do.
so here’s my question with using python api… how would i use that? just open up powershell, copy the code, change what needs to be changed, then copy that into the command line? like i said, every time i see it, it looks like gibberish to me…
so for instance the second option you listed, popped this up, and i bolded what i need to change… then i would copy the edited version?
Blockquote server = tw1zt3d server(‘http://my address:32400’, ‘MyPlexToken’)
server.library.section(‘terry crews’).collection(‘terry crews’).delete()
Make sure you have Python installed. You can download and run the latest installer from here: Download Python | Python.org. Note that at one point it will ask about adding Python to your path. Make sure that box is checked.
After running the installer, open a new Powershell (or command prompt) window, and enter pip install plexapi to install the Python Plex API.
Enter python in Powershell/cmd to open an interactive Python session. You should see something like this:
Python 3.12.4 [...]
Type "help", "copyright", "credits" or "license" for more information.
>>>
Assuming you’re running the script on the same computer that’s hosting your server, enter the following, line by line, replacing abcdef with the token you found in step 3, and ‘MyLibrary’ with the name of the library the collection belongs to (e.g. ‘Movies’):
from plexapi.server import PlexServer
server = PlexServer('http://127.0.0.1:32400', 'abcdef')
server.library.section('MyLibrary').collection('terry crews').delete()
As an alternative to steps 4 and 5, you can create a new text file that contains the lines from step 5, give it a .py extension (e.g. ‘DeleteCollection.py’), then run python C:\Path\To\DeleteCollection.py. If you’re having trouble finding your authentication token, you can also sign in with your username and password. To do that, the script would instead look something like this (replacing all the relevant username/password/server/library/collection names):
from plexapi.myplex import MyPlexAccount
account = MyPlexAccount('MyUsername', 'MyPassword')
server = account.resource('MyServerName').connect()
server.library.section('MyLibrary').collection('terry crews').delete()
thank you for making it simple by making it so all i had to do was plug in my stuff… i now have access to every letter and it doesn’t freak out when i scroll to T
if an actor isn’t in the top 3 billed, when you filter movies by actor, that person will not show up. when you click into a movie, and select an actor, everything will show up, but you cannnot create a smart collection based on that.
it was on here that someone had posted that if you do the second option, but then add a string (unfortunately i’m on a different computer otherwise i’d quote it) to the end of the url, the ability to make it a smart collection becomes an option… basically forcing it to be a smart collection rather than just a collection. apparently my plex did not like that.