Skip to content

Commit 2f95e32

Browse files
committed
refactor: change json payload to query parameters in remove_queue_item method
1 parent 94a2be4 commit 2f95e32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/settings/_instances.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,15 @@ async def remove_queue_item(self, queue_id, *, blocklist=False):
327327
)
328328
endpoint = f"{self.api_url}/queue/{queue_id}"
329329
headers = {"X-Api-Key": self.api_key}
330-
json_payload = {"removeFromClient": True, "blocklist": blocklist}
330+
query = {"removeFromClient": True, "blocklist": blocklist}
331331

332332
# Send the request to remove the download from the queue
333333
response = await make_request(
334334
"delete",
335335
endpoint,
336336
self.settings,
337337
headers=headers,
338-
json=json_payload,
338+
params=query,
339339
)
340340

341341
# If the response is successful, return True, else return False

0 commit comments

Comments
 (0)