Skip to content

Commit c49fbb8

Browse files
authored
Merge pull request #115 from totaldebug/114-sonarr_add_include_series_to_get_wanted
feat: sonarr - inclide_serise added to get_wanted
2 parents b683c9c + fcb3218 commit c49fbb8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pyarr/sonarr.py

+4
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ def get_wanted(
269269
page: int = PAGE,
270270
page_size: int = PAGE_SIZE,
271271
sort_dir: PyarrSortDirection = PyarrSortDirection.ASC,
272+
include_series: bool = False,
272273
) -> dict[str, Any]:
273274
"""Gets missing episode (episodes without files)
274275
@@ -277,6 +278,7 @@ def get_wanted(
277278
page (int, optional): Page number to return. Defaults to 1.
278279
page_size (int, optional): Number of items per page. Defaults to 10.
279280
sort_dir (PyarrSortDirection, optional): Direction to sort the items. Defaults to PyarrSortDirection.ASC.
281+
include_series (bool, optional): Include the whole series. Defaults to False
280282
281283
Returns:
282284
dict[str, Any]: Dictionary with items
@@ -287,6 +289,8 @@ def get_wanted(
287289
"pageSize": page_size,
288290
"sortDir": sort_dir,
289291
}
292+
if include_series:
293+
params["includeSeries"] = True
290294
return self.assert_return("wanted/missing", self.ver_uri, dict, params)
291295

292296
# PROFILES

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pyarr"
3-
version = "4.0.2"
3+
version = "4.1.0"
44
description = "Synchronous Sonarr, Radarr, Lidarr and Readarr API's for Python"
55
authors = ["Steven Marks <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)