![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
qbittorrent-api
Advanced tools
Wrapper around qBittorrent's API to manage your torrents from Node. Documented and everything.
Wrapper around qBittorrent's API to manage your torrents from Node. Documented and everything.
npm i qbittorrent-api
Arguments
host
username
optionalpassword
optionalReturns
Interface object to call methods on.
Example
var api = require("qbittorrent-api");
var qbt = api.connect("http://localhost:8080", "admin", "DELETETHIS");
qbt.version(function (error, data) {
console.log(data);
});
Arguments
torrent
- Path or URL to torrent file, Readable stream, or magnet link.savePath
optionallabel
optionalcallback
optional
error
Example
qbt.add("magnet:?xt=urn:btih:PRFPQ2Z6XYO2SB3Z5N6A3RKW4KSJA62E");
qbt.add("http://torrents.linuxmint.com/torrents/linuxmint-17.3-cinnamon-64bit.iso.torrent", "D:\\Files", "software");
var stream = fs.createReadStream("~/torrents/2.Girls.1.Cup.torrent");
qbt.add(stream, "~/files/Tax Returns");
watcher.on("add", function (filePath) {
qbt.add(filePath, function (error) {
console.log("New torrent: " + filePath);
});
});
Arguments
host
value
Example
qbt.setCookie("www.website.com", "ui=28979218048197");
qbt.add("http://www.website.com/torrentname.torrent");
Arguments
label
optional - Filter by labeloptions
optional - Additional options
sort
reverse
limit
offset
callback
error
items
Example
qbt.all("Movies", { sort: "size", reverse: true }, function (error, items) {
items.forEach(function (item) {
console.log(item["name"] + ": " + item["size"]);
});
});
qbt.paused(function (error, items) {
qbt.resume(items);
});
Arguments
searchText
options
optional - Search options
filter
label
sort
reverse
limit
offset
callback
error
items
Example
qbt.search("donkey", {
filter: "completed",
label: "Video"
}, function (error, items) {
qbt.deleteData(items);
});
Arguments
callback
error
data
Example
qbt.transferInfo(function (error, data) {
console.log(data["connection_status"]);
});
Arguments
torrent
- Torrent object or hash stringcallback
error
data
Example
qbt.active(function (error, items) {
items.forEach(function (item) {
qbt.details(item, function (error, data) {
console.log(item["name"] + ": " + data["up_speed_avg"]);
});
});
});
Arguments
callback
optional
error
Arguments
value
callback
optional
error
Arguments
values
- Object of key-value pairs (list of keys)callback
optional
error
Example
qbt.setPreferences({ save_path: "D:\\New" }, function (error) {
qbt.preferences(function (error, values) {
console.log(values["save_path"]);
});
});
Arguments
torrents
- One or more torrent objects or hash stringscallback
optional
error
Example
qbt.errored(function (error, items) {
qbt.recheck(items);
});
Arguments
torrents
- One or more torrent objects or hash stringsvalue
callback
optional
error
Example
qbt.queued(function (error, items) {
qbt.setForceStart(items, true);
});
Arguments
torrents
- One or more torrent objects or hash stringstrackers
- Array of tracker url stringscallback
optional
error
Example
qbt.inactive(function (error, items) {
qbt.addTrackers(items, [
"udp://tracker.openbittorrent.com:80/announce",
"udp://tracker.publicbt.com:80/announce"
]);
});
Arguments
torrent
- Single torrent object or hash stringfileId
- Index of the file in the torrent's file list (zero-based)value
0
- Do not download1
- Normal2
- High7
- Maximumcallback
optional
error
Example
qbt.paused(function (error, items) {
items.forEach(function (item) {
qbt.files(item, function (error, files) {
files.forEach(function (file, index) {
if (file.progress === 0) {
qbt.setFilePrio(item, index, 0);
}
});
});
});
});
FAQs
Wrapper around qBittorrent's API to manage your torrents from Node. Documented and everything.
The npm package qbittorrent-api receives a total of 0 weekly downloads. As such, qbittorrent-api popularity was classified as not popular.
We found that qbittorrent-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.