pyarr
pyarr copied to clipboard
Add /series/editor endpoint to Sonarr API
Is there an existing issue for this?
- [X] 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
- [X] I agree to follow this project's Code of Conduct