-
-
Notifications
You must be signed in to change notification settings - Fork 325
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
ignore_smart_in applied to all collections regardless of size, prevents deletion #2522
Comments
So are you saying it works properly in nightly? |
No it doesn't since there is no condition check for the size of the collection. The bug doesn't exist in the main branch but I'm sure the code was added to nightly to fix something else. If I add the setting I attached my log file to the bug, if you search for the I assume that Line 1127 in b9b7fdd
Line 1136 in b9b7fdd
|
I thought this was fixed in nightly, by removing the less check https://discord.com/channels/822460010649878528/966824657971974214/1298672118023716864 |
If this is linking to the correct fix in nightly then that seems to only fix something for empty smart collections, my collections are not empty but they are also not being deleted when they should be. I am also not using a less check, so whatever the default value is for the less check is what my config would be using. My entire config is shown in the logs I attached to this bug if you would like to review it, I do believe this is a bug. |
Version Number
2.1.0-build72
What branch are you on?
nightly
Describe the Bug
Looking at the code in the nightly branch points to some possibly weird behavior.
The default value for
ignore_empty_smart_collections
is True if you don't set it (Config Warning: ignore_empty_smart_collections attribute not found using True as default
).If you have non-empty smart collections that are not configured but are managed and you're using delete_collection operations this seems to cause a bug for me.
The code that checks for deleting collections has a condition that checks that setting and it would seem to resolve as follows.
which would mean it isn't marked for deletion due to the condition on the final return .
This code is only in the nightly branch, not the main branch.
It seems like the
ignore_smart_in
option is suppose to only apply to a collection if the collection is empty but it's applying to all collections regardless of size.Relevant Collection/Overlay/Playlist Definition
Logs
https://gist.github.com/hwwilliams/ff372edb92af4ea26d3a0ed6832f75a1
The text was updated successfully, but these errors were encountered: