Skip to content

Commit

Permalink
Merge pull request #115 from totaldebug/114-sonarr_add_include_series…
Browse files Browse the repository at this point in the history
…_to_get_wanted

feat: sonarr - inclide_serise added to get_wanted
  • Loading branch information
marksie1988 committed Jun 28, 2022
2 parents b683c9c + fcb3218 commit c49fbb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pyarr/sonarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <marksie1988@users.noreply.github.com>"]
license = "MIT"
Expand Down

0 comments on commit c49fbb8

Please sign in to comment.