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

Bug: delete_unmanaged_collections deletes ALL collections #724

Closed
JohnDoranNY opened this issue Feb 18, 2022 · 5 comments · Fixed by #731
Closed

Bug: delete_unmanaged_collections deletes ALL collections #724

JohnDoranNY opened this issue Feb 18, 2022 · 5 comments · Fixed by #731
Assignees
Labels
bug Bug is with Plex Meta Manager status:added-to-develop Feature Request or Bug Fix is in Develop

Comments

@JohnDoranNY
Copy link

When I used delete_unmanaged_collections, it deleted all collections in my library... Those created by PMM as smart collections, those created by PMM via tmdb_collections operation, those created as standard collections with PMM, and any custom created by hand.

Wouldn't 'unmanaged' be any collection not created by PMM (since PMM is managing the collections it creates)? Or am I misunderstanding the use of this operation?

@JohnDoranNY JohnDoranNY added bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet labels Feb 18, 2022
@meisnate12
Copy link
Member

you are indeed correct ill look into this are you on master or develop?

@JohnDoranNY
Copy link
Author

I am on master... I am a programmer, but in c# .NET... I haven't used python in ages and ages.. though I think with PMM I might refresh myself so I can dig in and help.

@meisnate12
Copy link
Member

feel free to contribute and if you wanna have an easier time chatting about it hop on the discord. PMM was actually the first time ive ever used python (I use Java by trade mainly)!

@JohnDoranNY
Copy link
Author

So I think I found the issue (after much time)

delete_collections_with_less was set to "false" not to an integer value. This seems to screw things up. Perhaps there needs to be error checking code put in when reading this value that if it is not a valid integer, it throws an error message to the user (?) . It should fail to run so as not to produce unpleasant results (like deleting every/all collection) when not set correctly.

meisnate12 added a commit that referenced this issue Mar 6, 2022
@meisnate12
Copy link
Member

sorry it took so long to get back to you so yes that should throw an error and default to None which doesn't delete collections i did just push a fix to the new nightly build if you wanna test

@meisnate12 meisnate12 mentioned this issue Mar 6, 2022
meisnate12 added a commit that referenced this issue Mar 6, 2022
@meisnate12 meisnate12 added status:added-to-develop Feature Request or Bug Fix is in Develop and removed status:not-yet-viewed I haven't reviewed the Feature or Bug yet labels Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug is with Plex Meta Manager status:added-to-develop Feature Request or Bug Fix is in Develop
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants