From fcb321813203f2e78374f0d90103b8bbe10a8e20 Mon Sep 17 00:00:00 2001 From: marksie1988 Date: Tue, 28 Jun 2022 12:56:41 +0000 Subject: [PATCH] feat: sonarr - inclide_serise added to get_wanted --- pyarr/sonarr.py | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pyarr/sonarr.py b/pyarr/sonarr.py index f43c838..4537f6e 100644 --- a/pyarr/sonarr.py +++ b/pyarr/sonarr.py @@ -269,6 +269,7 @@ def get_wanted( page: int = PAGE, page_size: int = PAGE_SIZE, sort_dir: PyarrSortDirection = PyarrSortDirection.ASC, + include_series: bool = False, ) -> dict[str, Any]: """Gets missing episode (episodes without files) @@ -277,6 +278,7 @@ def get_wanted( page (int, optional): Page number to return. Defaults to 1. page_size (int, optional): Number of items per page. Defaults to 10. sort_dir (PyarrSortDirection, optional): Direction to sort the items. Defaults to PyarrSortDirection.ASC. + include_series (bool, optional): Include the whole series. Defaults to False Returns: dict[str, Any]: Dictionary with items @@ -287,6 +289,8 @@ def get_wanted( "pageSize": page_size, "sortDir": sort_dir, } + if include_series: + params["includeSeries"] = True return self.assert_return("wanted/missing", self.ver_uri, dict, params) # PROFILES diff --git a/pyproject.toml b/pyproject.toml index 80c3a95..bd81d19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pyarr" -version = "4.0.2" +version = "4.1.0" description = "Synchronous Sonarr, Radarr, Lidarr and Readarr API's for Python" authors = ["Steven Marks "] license = "MIT"