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

fix: hashes properties #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/qbt.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ exports.connect = async (host, username, password) => {
* @param {string} seedingTimeLimit - Max amount of time the torrent should be seeded. `-2` means the global limit should be used, `-1` means no limit
*/
setShareLimit: async (hashes, ratioLimit, seedingTimeLimit) => {
return await setShareLimit(options, cookie, ratioLimit, seedingTimeLimit)
return await setShareLimit(options, cookie, hashes, ratioLimit, seedingTimeLimit)
},
/**
* Get torrent upload limit
Expand Down Expand Up @@ -1132,8 +1132,8 @@ async function rename(options, cookie, hash, name) {
return
}

async function setCategory(options, cookie, hash, category) {
await performRequest(options, cookie, '/torrents/setCategory', { hash: hash, category: encodeURI(category) })
async function setCategory(options, cookie, hashes, category) {
await performRequest(options, cookie, '/torrents/setCategory', { hashes: hashes, category: encodeURI(category) })
return
}

Expand Down