From 9d328d9e694533e45f0a4225b863980532cd7a58 Mon Sep 17 00:00:00 2001 From: Levi Romandine Date: Sat, 8 Jul 2023 14:45:43 -0700 Subject: [PATCH 1/3] Add undocumented MoviesSearch to post_commands add MoviesSearch to post_commands. undocumented API that is the radarr equivalent of sonarr EpisodeSearch. It triggers a search for the given movie the same as clicking the "Search Movie" button in the UI. --- pyarr/models/radarr.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyarr/models/radarr.py b/pyarr/models/radarr.py index 8c7adb6..d3ac5aa 100644 --- a/pyarr/models/radarr.py +++ b/pyarr/models/radarr.py @@ -3,6 +3,7 @@ RadarrCommands = Literal[ "DownloadedMoviesScan", "MissingMoviesSearch", + "MoviesSearch", "RefreshMovie", "RenameMovie", "RenameFiles", @@ -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 From 87b838bdc2d5db7309ad7ad0a1703c644e1a26bf Mon Sep 17 00:00:00 2001 From: Levi Romandine Date: Wed, 19 Jul 2023 21:27:32 -0700 Subject: [PATCH 2/3] add MoviesSearch to test_radarr.py --- tests/test_radarr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_radarr.py b/tests/test_radarr.py index e73938a..a6c1b99 100644 --- a/tests/test_radarr.py +++ b/tests/test_radarr.py @@ -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]) From 718a5bebdf64edba74eff06000ccd499d4054ba6 Mon Sep 17 00:00:00 2001 From: Levi Romandine Date: Sat, 22 Jul 2023 20:59:12 -0700 Subject: [PATCH 3/3] bump minor version for merge bump minor version for merge --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c88975b..b44c92a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "MIT"