Skip to content
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

Feature request: option "-f" for "qbt torrent resume" command #50

Closed
jducaud opened this issue Mar 27, 2021 · 4 comments
Closed

Feature request: option "-f" for "qbt torrent resume" command #50

jducaud opened this issue Mar 27, 2021 · 4 comments

Comments

@jducaud
Copy link

jducaud commented Mar 27, 2021

Hello,

Great work for this amazingly efficient qBittorrent CLI!

It seems it misses the "force resume" feature of qBittorrent WebUI.

Would it be possible to add (as it is implemented for the qbt torrent delete command) a -f option to the qbt torrent resume command?

Regards,
Jerome.

@Jarsky
Copy link
Contributor

Jarsky commented Dec 30, 2022

Hi there,

I really like this tool. Its useful for me to automatically pause the torrents to release file locks and allow them to be moved off my cache to storage.
But I have issues with torrents seeding properly so I normally set them to forced resume.
Would be great if we could get this feature added as @jducaud requested.
Even if its just its own command e.g qbt torrent forceresume all

It looks like this is the API call
https://github.com/qbittorrent/qBittorrent/blob/162273da47cda21b5d3a5bab54c098dbb1d7468d/src/webui/www/private/scripts/mocha-init.js

    setForceStartFN = function() {
        const hashes = torrentsTable.selectedRowsIds();
        if (hashes.length) {
            new Request({
                url: 'api/v2/torrents/setForceStart',
                method: 'post',
                data: {
                    value: 'true',
                    hashes: hashes.join("|")
                }
            }).send();
            updateMainData();
        }
    };

@Jarsky
Copy link
Contributor

Jarsky commented Jan 14, 2023

this is done @jducaud
you can use the below command once the author has published a release (or you can clone the git and build it)

qbt torrent force-resume HASH|ALL

@jducaud
Copy link
Author

jducaud commented Jan 14, 2023

Thank you @Jarsky !

@fedarovich
Copy link
Owner

I've published the release with this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants