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

feat(sonarr): add media management tab resources #51

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

Fuochi
Copy link
Contributor

@Fuochi Fuochi commented Jun 2, 2022

This is to add the following resources to Sonarr:

  • MediaManagement: Only read and update, since it cannot be created or deleted.
  • Naming: Same as previous one.
  • RootFolder: no edit. To change root folder the process should probably be create new one > move series > delete old one. It cannot be done via a single API.

@austinwbest
Copy link
Collaborator

It cannot be done via a single API.

use the DELETE method to
/api/v3/rootFolder/<folder-id>

I believe that achieves what you're after..

@Fuochi
Copy link
Contributor Author

Fuochi commented Jun 3, 2022

Hi @austinwbest, thanks for your comment. However, what I meant is that you cant use PUT method to edit a root folder. Hence, I've only extended the library to implement the POST and DELETE methods, since the GET was already covered.

@Fuochi Fuochi merged commit ab524aa into master Jun 3, 2022
@Fuochi Fuochi deleted the feature/sonarr-mediamanagement branch June 3, 2022 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants