From eb5a999dacc9c24d1918255101ad0dbd3d2b8b15 Mon Sep 17 00:00:00 2001 From: Parker Date: Sun, 19 May 2024 19:04:57 -0500 Subject: [PATCH] Auto search for movie on addition to Radarr --- code/func/radarr.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/func/radarr.py b/code/func/radarr.py index c769087..cc45586 100644 --- a/code/func/radarr.py +++ b/code/func/radarr.py @@ -136,6 +136,12 @@ class RequestButtonView(discord.ui.View): color=0xD01B86, ) await interaction.response.edit_message(embed=embed, view=None) + # Force Radarr to search for the movie + requests.post( + f"{RADARR_HOST_URL}/api/v3/command", + headers=RADARR_HEADERS, + json={"name": "MoviesSearch", "movieIds": [movie_id]}, + ) # Keep track of the movie for the `/status` command db = sqlite3.connect("cordarr.db")