New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose stop_when_ready flag #17250
Expose stop_when_ready flag #17250
Conversation
…Params` in `addTorrent` and expose in webapi
Currently this flag is used by qBittorrent internally to perform some service jobs. By directly exposing it to user space you most likely break it. I am not sure that it is required in the user space in its low-level sense. So first of all it would be nice to find out what it should have been intended for by you. |
@glassez Yes sorry I should have mentioned that. I am creating python helper scripts to control qBittorrent via the webapi. One of the things I do is scan the harddrive for files which match a torrent file and add to the client. In most cases they are added and checked fine to 100%. But sometimes the hash doesn't fully match (paths and sizes do) and the original files are destroyed because qbittorrent overwrites these parts. If I add them paused, it wouldn't recheck them to see if the match. So I would like to use the I saw the flag is used by qBittorrent during rechecking. I don't think adding it to the add torrent operation can break anything. |
Yes, this is a known problem for me. Unfortunately, we have conflicting opinions from users, so some prefer that torrents added as "stopped" really do nothing, while others want the hash check to be done anyway. |
I am fine with the current behaviour of the web interface or the GUI. But I think by exposing this flag in the webapi, it will only ever be used by advanced users anyway. |
This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity. |
Any comments? |
@glassez From what I can understand from your PR, you don't use the |
Well, if don't go into details, yes.
It behaves inconvenient, IMO. I need torrent to be stopped after files is checked independently from the way it is added (.torrent file or magnet link).
Well, if you really need the result and not the implementation details, then it should satisfy you (unless you need exactly the same behavior as |
Superseded by #17814. |
This PR allows to set
torrent_flags_t.stop_when_ready
flag usingaddTorrentParams
inaddTorrent
and expose in webapi.