Fix Sonarr media management settings and improve root folder handling #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes a number of bugs with loading and setting media management configuration in Sonarr.
Add a new
delete_unmanaged_root_folders
configuration attribute to the media management block, to enable automatic deletion of root folders not explicitly defined in Buildarr.minimum_free_space
to the minimum allowed value of 100 MB, as enforced by Sonarrchown_group
to be of typeOptional[str]
to allow empty strings to be defined (handled the same asNone
)root_folders
to be of typeSet[NonEmptyStr]
to ensure only unique values are handled internallydelete_unmanaged_root_folders
attribute for allowing automatic deletion of root folders in Sonarr not defined in Buildarrunmonitor_deleted_episodes
to the remote map entries, causing it to not be read from Sonarr or updated when defined in Buildarrroot_folders