aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-rw-r--r--code/func/radarr.py6
1 files changed, 6 insertions, 0 deletions
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")