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
importrequests# Replace these with the qBittorrent WebUI detailsQB_IP_ADDRESS="localhost"QB_PORT="8080"QB_SERVER="http://"+QB_IP_ADDRESS+":"+QB_PORT# Set the Username and PasswordQB_USERNAME='un'QB_PASSWORD='pw'# Login to qBittorrent WebUIqbit_session=requests.Session()
login_response=qbit_session.post(f'{QB_SERVER}/api/v2/auth/login', data={
'username': QB_USERNAME,
'password': QB_PASSWORD
})
ap: json=qbit_session.post(f'{QB_SERVER}/api/v2/app/preferences', data={"start_paused_enabled": 1})
a_dict=dict(ap.json())
keys=list(a_dict.keys())
keys.sort()
forkinkeys:
print(f"{k} : {a_dict[k]}")
# Logout from qBittorrent sessionqbit_session.get(f'{QB_SERVER}/api/v2/auth/logout')
If you run the following python script, which is a cut down version of the one I am creating, you will notice in the return json, start_paused_enabled is missing from the output.
Furthermore in Advanced Settings in qB torrent the value of Start BitTorrent session in a paused state is still in the same state it was before running the script.
This was the state after running the script, it should be enabled.
Reading this over again I am not 100% that start_paused_enabled is meant for Start BitTorrent session in a paused state, regardless, start_paused_enabled isn't doing anything when posted via the API.
qBittorrent & operating system versions
qBittorrent: 5.0.1 x64
Qt: 6.7.3
Python: Python312
Operating system:
What is the problem?
I am scripting in python and I am trying to set the
start_paused_enabled
preference via the API but noticed it is missing from the API in qB 5.0.1.Several other settings are also missing from preferences, specifically:
According to
https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#get-application-preferences
All these settings should be available via the API.
The settings that are currently available via the API are as follows:
Steps to reproduce
If you run the following python script, which is a cut down version of the one I am creating, you will notice in the return json, start_paused_enabled is missing from the output.
Furthermore in Advanced Settings in qB torrent the value of
Start BitTorrent session in a paused state
is still in the same state it was before running the script.This was the state after running the script, it should be enabled.
Additional context
No response
Log(s) & preferences file(s)
qbittorrent.log
The text was updated successfully, but these errors were encountered: