From 2f95e324a23f8cccbeca5972dd21ac3560dfa233 Mon Sep 17 00:00:00 2001 From: Thanasis Trispiotis Date: Fri, 20 Jun 2025 10:07:07 +0300 Subject: [PATCH] refactor: change json payload to query parameters in remove_queue_item method --- src/settings/_instances.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settings/_instances.py b/src/settings/_instances.py index 3189333..0b021f7 100644 --- a/src/settings/_instances.py +++ b/src/settings/_instances.py @@ -327,7 +327,7 @@ class ArrInstance: ) endpoint = f"{self.api_url}/queue/{queue_id}" headers = {"X-Api-Key": self.api_key} - json_payload = {"removeFromClient": True, "blocklist": blocklist} + query = {"removeFromClient": True, "blocklist": blocklist} # Send the request to remove the download from the queue response = await make_request( @@ -335,7 +335,7 @@ class ArrInstance: endpoint, self.settings, headers=headers, - json=json_payload, + params=query, ) # If the response is successful, return True, else return False