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

Add /series/editor endpoint to Sonarr API #171

Open
2 tasks done
coandco opened this issue May 3, 2024 · 0 comments
Open
2 tasks done

Add /series/editor endpoint to Sonarr API #171

coandco opened this issue May 3, 2024 · 0 comments
Labels
type/feature New feature or request

Comments

@coandco
Copy link

coandco commented May 3, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Expected feature

While the RadarrAPI class exposes /movie/editor as upd_movies(), the SonarrAPI class doesn't expose /series/editor despite it being a valid endpoint.

Possible Solutions

I made a quick monkeypatch so I could use it in a one-off script:

from pyarr import SonarrAPI as _SonarrAPI

class SonarrAPI(_SonarrAPI):
    def edit_series(self, data):
        return self._put("series/editor", self.ver_uri, data=data)

That being said, it would be nice if something similar could be put into the official class.

Context / Reason

I wanted to edit the root folder of all series matching a particular criteria in a one-off script.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@coandco coandco added the type/feature New feature or request label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant