Skip to content

Commit b56bb63

Browse files
authored
Merge pull request #156 from LRomandine/patch-1
Add undocumented MoviesSearch to post_commands
2 parents 3771b92 + 718a5be commit b56bb63

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

pyarr/models/radarr.py

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
RadarrCommands = Literal[
44
"DownloadedMoviesScan",
55
"MissingMoviesSearch",
6+
"MoviesSearch",
67
"RefreshMovie",
78
"RenameMovie",
89
"RenameFiles",
@@ -23,6 +24,12 @@
2324
MissingMoviesSearch:
2425
Searches for any missing movies
2526
27+
MoviesSearch:
28+
Searches for the specified movie or movies
29+
30+
Args:
31+
movieIds (list[int]): ID of Movie or movies
32+
2633
RefreshMovies:
2734
Refreshes all of the movies, or specific by ID
2835

pyproject.toml

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

tests/test_radarr.py

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def test_post_command(radarr_client: RadarrAPI):
3838
assert isinstance(data, dict)
3939
data = radarr_client.post_command(name="MissingMoviesSearch")
4040
assert isinstance(data, dict)
41+
data = radarr_client.post_command(name="MoviesSearch")
42+
assert isinstance(data, dict)
4143
data = radarr_client.post_command(name="DownloadedMoviesScan")
4244
assert isinstance(data, dict)
4345
data = radarr_client.post_command(name="RenameFiles", files=[1, 2, 3])

0 commit comments

Comments
 (0)