Skip to content

Commit

Permalink
Merge pull request #156 from LRomandine/patch-1
Browse files Browse the repository at this point in the history
Add undocumented MoviesSearch to post_commands
  • Loading branch information
marksie1988 authored Jul 23, 2023
2 parents 3771b92 + 718a5be commit b56bb63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pyarr/models/radarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
RadarrCommands = Literal[
"DownloadedMoviesScan",
"MissingMoviesSearch",
"MoviesSearch",
"RefreshMovie",
"RenameMovie",
"RenameFiles",
Expand All @@ -23,6 +24,12 @@
MissingMoviesSearch:
Searches for any missing movies
MoviesSearch:
Searches for the specified movie or movies
Args:
movieIds (list[int]): ID of Movie or movies
RefreshMovies:
Refreshes all of the movies, or specific by ID
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 = "5.1.0"
version = "5.1.1"
description = "Synchronous Sonarr, Radarr, Lidarr and Readarr API's for Python"
authors = ["Steven Marks <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 2 additions & 0 deletions tests/test_radarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def test_post_command(radarr_client: RadarrAPI):
assert isinstance(data, dict)
data = radarr_client.post_command(name="MissingMoviesSearch")
assert isinstance(data, dict)
data = radarr_client.post_command(name="MoviesSearch")
assert isinstance(data, dict)
data = radarr_client.post_command(name="DownloadedMoviesScan")
assert isinstance(data, dict)
data = radarr_client.post_command(name="RenameFiles", files=[1, 2, 3])
Expand Down

0 comments on commit b56bb63

Please sign in to comment.