You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The del_queue method which deletes an item from the activity queue has a parameter called remove_from_client which should set the removeFromClient parameter in the DELETE request made to the *arr API. This parameter defaults to true in the API docs, but will only be sent if the value passed into the method is truthy, meaning it can never be set explicitly to false.
The reason for this is faulty logic on line 500 in base.py which means the removeFromClient parameter can only be set if it is truthy. This is the wrong way around since API defaults this value to true.
Is there an existing issue for this?
Current Behaviour
The
del_queue
method which deletes an item from the activity queue has a parameter calledremove_from_client
which should set theremoveFromClient
parameter in theDELETE
request made to the *arr API. This parameter defaults totrue
in the API docs, but will only be sent if the value passed into the method is truthy, meaning it can never be set explicitly tofalse
.Steps To Reproduce
Expected behaviour
I would expect a
DELETE
API call to be made to Sonarr with theremoveFromClient
parameter set tofalse
.Instead, the following API call is made without the parameter being included:
The reason for this is faulty logic on line 500 in
base.py
which means theremoveFromClient
parameter can only be set if it is truthy. This is the wrong way around since API defaults this value totrue
.pyarr/pyarr/base.py
Lines 483 to 505 in 09e489b
Pyarr Version
v5.2.0
Python Version
3.10.12
Example Code
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: