diff --git a/src/qbt.js b/src/qbt.js index 7c14242..aa82513 100644 --- a/src/qbt.js +++ b/src/qbt.js @@ -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 @@ -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 }