Skip to content

Add /series/editor endpoint to Sonarr API #171

@coandco

Description

@coandco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions