Giter Site home page Giter Site logo

qbittorrent-cli's Introduction

qbittorrent-cli

Current Nightly Release
Current Build Nightly Build Release Build

Linux package repositories has been moved! If you are using qBittorrent CLI 1.6 or earlier, please follow the installation guide to update the repository.


Description

qBittorrent CLI is a cross-platform command line interface for remote qBittorrent instances.

It can be useful for torrent management automation or if you just prefer using command line.

qBittorrent CLI can be used on Windows, Linux and Mac OS X running on various devices like PCs, laptops and even single-board computers like Raspberry Pi or Orange Pi.

qBittorrent CLI is fully compatible with qBittorrent 4.0 or later. It is also partially compatible with qBittorrent 3.x.

Documentation

documentation

Please, see the Wiki to get information about the product setup and usage.

Attributions

Hosted By: Cloudsmith

Package repository hosting is graciously provided by Cloudsmith. Cloudsmith is the only fully hosted, cloud-native, universal package management solution, that enables your organization to create, store and share packages in any format, to any place, with total confidence.

qbittorrent-cli's People

Contributors

dependabot[bot] avatar fedarovich avatar jarsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qbittorrent-cli's Issues

Download in sequential order ?

I added qbittorrent and qbittorrent-nox on my debian server to have a good upload ratio. I'm using it to download films and watch them while it downloads, but currently I have to manually set "Download in sequential order" using the web interface to be able to stream the film without interuption.
Is it possible to ask qbttorrent to download in sequential order when adding a torrent ?

Search for hash, name etc in list or json

It would be nice if we can search for Name of torrent then it leaves that torrent's hash for example.

qbt torrent list -f paused -F json | Where Name = "Something" then send me that hash what torrent named with "Something"

Is it possible to change the category of the torrent?

I would like to be able to change the category (or otherwise tag) a torrent once the script downloaded it from the torrent box.

Is it possible at all using qbittorrent-cli?

Great job, by the way. The client has a very professional feel and a good API. Thank you very much for sharing it.

Can't set up qbt-cli to work with Basic Auth

Hello.
I am trying to use qbt clie in the following scenario.

qBittorrent web ui is available via Apache reverse proxy with Basic Auth on the url like https://example.mydomain.com/.private/qb/.
I try to set up qbt-cli in the following way:
qbt network settings -i true
qbt settings set url https://example.mydomain.com/.private/qb/
qbt settings set username myaccount
qbt settings set password

When I try to execute something like qbt server info I get the error message "Response status code does not indicate success: 404 (Not Found)."

When I check Apache access log I see the following
"GET /version/api HTTP/1.1" 404 3341 "-" "-"
"POST /api/v2/auth/login HTTP/1.1" 404 424 "-" "-"

I'm confused. Why is qbt cli not trying at least to check the api version in the subdirectory of the url I supplied?

Thanks a lot in advance!

crontab can't run qbt, why?

this is success in shell, I have config user password url by "qbt settings set":
qbt torrent list

this is also success in crontab:
03 13 * * * qbt torrent --help >>/tmp/ccc 2>>/tmp/ccc

but, this is failed in crontab, never running, /tmp/ccc is empty
03 13 * * * qbt torrent list >>/tmp/ccc 2>>/tmp/ccc

thanks!

my system is debian 10 x64.
qbt --help
1.5.19350.1

QBittorrent version: 4.1.5 API version: 2.2.0 Legacy API version: 23 Legacy API min version: 23

[Feature request] - Private tracker command

Hi, I hope all is ok on your side!

About the qbt I want to ask you if there's any way to have a command to return the status (private or not) for the torrent with given hash

Do you think is possible?

Thanks and have a nice day.

Jorman

Native installs do not work from repo Arm64 Ubuntu

i386 needs to be swapped to arm64 here
https://dl.bintray.com/fedarovich/qbittorrent-cli-debian/dists/bionic/Release

Need a packages file dedicated for arm64 here: (currently they are merged in the armhf pacakges file)
https://dl.bintray.com/fedarovich/qbittorrent-cli-debian/dists/bionic/main/binary-arm64/

If you do not have arm64 hardware to test this on you can always use Docker first run:

docker run --rm --privileged multiarch/qemu-user-static:register --reset

Then this dockerfile should do the trick

FROM lsiobase/ubuntu:arm64v8-bionic
# add repo and install qbitorrent-cli
RUN \
 apt-get update && \
 apt-get install -y \
        gnupg && \
 curl -s https://bintray.com/user/downloadSubjectPublicKey?username=fedarovich | apt-key add - && \
 echo "deb https://dl.bintray.com/fedarovich/qbittorrent-cli-debian bionic main" > /etc/apt/sources.list.d/qbitorrent.list && \
 apt-get update && \
 apt-get install -y \
        qbittorrent-cli

Is there any reason 'qbt torrent list' wouldn't work with cron?

I'm having trouble getting this to run with cron on Debian Buster on my Raspberry Pi. Running /usr/bin/qbt torrent list works fine as user/sudo, and I'm able to redirect the output to a log with no problem. But when I add it to crontab -e:

* * * * * /usr/bin/qbt torrent list >> /home/pi/LOG.log 2>&1

The log file is created, but the output of the command does not log. I've tried copying the cron environment and running the command manually. With crontab -e, I added:

* * * * * env > ~/cronenv

Then run:
env - `cat ~/cronenv` /bin/sh
/usr/bin/qbt torrent list

It runs fine and outputs as expected, but when I try to redirect the output to a log, log is created but empty:
/usr/bin/qbt torrent list >> LOG.log

If I prepend with an unbuffer in this environment, the log is populated appropriately:
/usr/bin/unbuffer /usr/bin/qbt torrent list >> LOG.log

But even with the unbuffer, it's still not working in crontab. I've also tried bash -l -c -x '/usr/bin/qbt torrent list', changing the cron shell (SHELL=/bin/bash), adding my path to cron, etc. but nothing works. I even have a Python script that calls qbt; the Python script works fine when I run it normally, the script runs fine in cron (and logging the output works fine), but the call from the script always returns output=b"" and error=None:

`process = subprocess.Popen("/usr/bin/unbuffer /usr/bin/qbt torrent list", stdout=subprocess.PIPE, shell=True)`
`output, error = process.communicate()`

When I try to run this command through a single SSH command, it works (e.g. ssh [email protected] -t '/usr/bin/qbt torrent list'`), but not when I attempt to launch the SSH command through that system's cron (though other SSH commands through cron work fine).

What am I missing?

can't get to work create .torrent file of a folder

as title suggest, does qbit-cli have commands support to create .torrent file (also add in trackers etc) I plan to use in conjunction with default program editor to create context menu on right clicking folder to create .torrent file of that folder.

please help, thank you

i can not disable certification verification

I try to disable cert. verify, with this command: qbt network settings -i true

But nothing happened:

qbt network settings

Use default credentials:   False
Ignore certificate errors: False

It is a Windows 10 system, a latest version of qbittorrent-cli.

Opensuse Tumbleweed repo fails

Added the repo as noted in the wiki and its failing on the most recent tumbleweed.

server6:~ # zypper se qbittorrent-cli
Loading repository data...
Reading installed packages...

S | Name | Summary | Type
--+-----------------+-----------------------------------------+--------
| qbittorrent-cli | qBittorrent remote command line client. | package
server6:~ # zypper in qbittorrent-cli
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides libssl47 needed by qbittorrent-cli-1.4.19211-2.x86_64
Solution 1: do not install qbittorrent-cli-1.4.19211-2.x86_64
Solution 2: break qbittorrent-cli-1.4.19211-2.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c/d/?] (c): c
server6:~ # zypper se libssl
Loading repository data...
Reading installed packages...

S | Name | Summary | Type
--+--------------------------+----------------------------------------+--------
| libssl48 | An SSL/TLS protocol implementation | package
| libssl48-32bit | An SSL/TLS protocol implementation | package
| libssl48-32bit-debuginfo | Debug information for package libssl48 | package
| libssl48-debuginfo | Debug information for package libssl48 | package
server6:~ #

Use of unicode breaks this application with cmd prompt

So using this software over command line seems to work fine. However because of the use of unicode in the "torrent list" function:

╔══╦══════════════════════════════════════════╦════╦════════╦════════╦═════════╗
│ST│Name │Hash│DL Speed│UL Speed│ ETA │
╚══╩══════════════════════════════════════════╩════╩════════╩════════╩═════════╝

I am unable to use this function when running the program from C#. It has something to do with cmd prompt's text encoding only being ANSI. I am unable to run this program from within another program with the correct text encoding, otherwise it just returns nothing.

Can you introduce a "-nounicode" tag so that it replaces all the ═'s and ╦'s with characters like - or + so it can be used using external applications that only support ANSI.

Add Torrent and Apply Category

How to, instead of adding a torrent and setting a category to it using its hash, add a torrent with a category directly?
$ qbt torrent add url 'magnet...' && qbt torrent category torrent-hash --set cat to $ qbt -tau 'magnet...' -cs cat.

An Aside:
Also, I find the command reference to be a bit difficult to work with (I personally find it FOMO inducing, and miss a traditional man page--top to bottom try this and combine it with this). Shell completions would be very helpful in that regard, as well as examples of commands in the main README (that showcase most to be used commands and long niche ones to familiarize users with the syntax. e.g., how to list all categories' names only or something more complex). I'll gladly open a PR for examples once I know how to do stuff.

Gatekeeper issues with manual install

I'm running MacOS Catalina 10.15.3.
When following instructions from: this wiki page I end up with tons of security messages which require manual unlock. Multiple runs are also required to allow all files.
The messages are related to all files included in the .pkg and the .tar.gz.
It would be very useful to have a single binary to run. This would allow using spctl to automate the addition of exceptions, or greatly lower the annoyance of this many messages.
The pkg also doesn't seem to solve this issue as it seems unsigned and just copying files to /usr/local/qbittorrent-cli.

Arch Linux Support

I can't seem to find the platform-agnostic packages (Linux) referenced in the Wiki. I am on Arch Linux. It would be great if you can support it as well.

Completion date shows "n/a"

When I use the command:

qbt torrent properties <hash>

It shows:

qbt torrent properties c236e2
Save path: /Users/xxx/Downloads/
Created at: 5/1/18 9:55:10 PM Comment: Size: 31,062,793,161 bytes Total wasted: 0 bytes Total uploaded: 0 bytes Total uploaded this session: 0 bytes Total downloaded: 31,064,619,839 bytes Total downloaded this session: 0 bytes Upload limit: None Download limit: None Tile elapsed: 03:40:48 Seeding time: 01:28:23 Connections: 0 Connection Limit: 100 Share ratio: 0.000 Addition date: 12/5/18 7:05:00 PM Completion date: n/a Created by: qBittorrent v4.0.3 Avg. download speed: 3909958 bytes/s Download speed: 0 bytes/s Avg. upload speed: 0 bytes/s Upload speed: 0 bytes/s ETA: 100.00:00:00 Last seen: n/a Peers: 0 Total peers: 4 Seeds: 0 Total seeds: 16 Piece size: 16,777,216 bytes Owned pieces: 1852 Total pieces: 1852 Time until reannounce: 00:00:00

The properties related to time are:

Created at: 5/1/18 9:55:10 PM

Addition date: 12/5/18 7:05:00 PM

Completion date: n/a

Actually they should be:

Created at: 5/1/18 5:55 PM

Addition date: 12/5/18 2:05 PM

Completion date: 12/5/18 7:26 PM

image

Completion date shows n/a and there is a deviation of between the date and actual date.
I tried on both Mac and Windows and on different torrents. Completion date is always n/a but the deviation are not all the same.

Discrepancies between lists of torrent properties.

When retrieving the torrent list with torrent list --format json it returns the following properties for each torrent...

"hash" "name" "magnet_uri" "size" "progress" "dlspeed" "upspeed" "priority" "num_seeds" "num_complete" "num_leechs" "num_incomplete" "ratio" "eta" "state" "seq_dl" "f_l_piece_prio" "category" "tags" "super_seeding" "force_start" "save_path" "added_on" "completion_on" "tracker" "dl_limit" "up_limit" "downloaded" "uploaded" "downloaded_session" "uploaded_session" "amount_left" "completed" "ratio_limit" "seen_complete" "last_activity" "time_active" "auto_tmm" "total_size" "max_ratio" "max_seeding_time" "seeding_time_limit"

yet when i retrieve properties with torrent properties <hash> -F json the only properties i get are...

"SavePath" "CreationDate" "Comment" "Size" "TotalWasted" "TotalUploaded" "TotalUploadedInSession" "TotalDownloaded" "TotalDownloadedInSession" "UploadLimit" "DownloadLimit" "TimeElapsed" "SeedingTime" "ConnectionCount" "ConnectionLimit" "ShareRatio" "AdditionDate" "CompletionDate" "CreatedBy" "AverageDownloadSpeed" "DownloadSpeed" "AverageUploadSpeed" "UploadSpeed" "EstimatedTime" "LastSeen" "Peers" "TotalPeers" "Seeds" "TotalSeeds" "PieceSize" "OwnedPieces" "TotalPieces" "Reannounce"

therefore i am limited to which properties i can retrieve with torrent properties <hash> -F property:name=

in order to get updates of properties that change, such as "State" "Progress" "eta", i have to retrieve and parse the entire torrent list every time, not a big deal, just kinda slow and tasking.

all in all i was just curious if this was some sort of limitation of the qB webui or just the way qbt-cli was written?

Delete torrent after completion

I am working on a PowerShell script that will help automate my life. In qbittorrent I am calling a PS1 file and passing arguments like torrent name, path, and hash (in the run external program after completion section). It's working to get that info however when I do qbt torrent delete $Hash to try and delete the torrent that finished it will not. It will manually if I type that in or manually run the script but not launching from the PS1 from qbittorrent.

Is there a limitation from launching the PS1 from qbittorrent? The script DOES run after the torrent is done, I have tested with popups. I can see the proper variables getting the information from qbittorrent. It's just won't process that command

Thanks

PS. I know this is not a qbittorrent page but I am thinking that the person who wrote this CLI might be familiar with working in qbittorrent enough to maybe know :D

unexplained 404 error

Hello
I'm running the following:

  • qBittorrent version: v4.2.1
  • qBittorrent Web API version: 2.4

When trying to use any qbittorrent-cli commands this is what happens:

qbt server info --url https://<fqdn>/qbt/ --username <username> --password <password> --print-stacktrace
QBittorrent.Client.QBittorrentClientRequestException: Response status code does not indicate success: 404 (Not Found).
   at QBittorrent.Client.Extensions.HttpClientExtensions.EnsureSuccessStatusCodeEx(HttpResponseMessage message)
   at QBittorrent.Client.QBittorrentClient.PostAsync(Func`2 builder, CancellationToken token, ApiLevel minApiLevel, ApiVersion minApiVersion)
   at QBittorrent.CommandLineInterface.Commands.ClientCommandBase.AuthenticateAsync(QBittorrentClient client)
   at QBittorrent.CommandLineInterface.Commands.AuthenticatedCommandBase.OnExecuteAsync(CommandLineApplication app, IConsole console)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.InvokeAsync(MethodInfo method, Object instance, Object[] arguments)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<<Apply>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass142_0.<OnExecute>b__0()
   at QBittorrent.CommandLineInterface.Program.Main(String[] args)

However using another HTTP client works as expected:

http --follow --session <mysession> http://<fqdn>/qbt/api/v2/app/buildInfo
HTTP/1.1 200 OK
Content-Length: 101
Content-Security-Policy: default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; object-src 'none'; form-action 'self'; frame-ancestors 'self';
Content-Type: application/json
Date: Sat, 08 Feb 2020 18:31:16 GMT
Referrer-Policy: same-origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

{
    "bitness": 64,
    "boost": "1.65.1",
    "libtorrent": "1.2.3.0",
    "openssl": "1.1.1",
    "qt": "5.9.5",
    "zlib": "1.2.11"
}

http stands for httpie and I had already logged in with:

http -v --follow --session <mysession> http://<fqdn>/qbt/api/v2/auth/login  username==<username> password==<password>
HTTP/1.1 200 OK
Content-Length: 3
Content-Security-Policy: default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; object-src 'none'; form-action 'self'; frame-ancestors 'self';
Content-Type: text/plain
Date: Sat, 08 Feb 2020 18:24:06 GMT
Referrer-Policy: same-origin
Set-Cookie: SID=4L8f+2KKS/j3R6P9KJF2q9SECHf5MWDh; HttpOnly; path=/; SameSite=Strict
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

Ok.

The entire connection flow includes a redirect as I'm hosting qBittorrent at /qbt:

http --follow --session brew http://<fqdn>/qbt/api/v2/app/buildInfo
GET /qbt/api/v2/app/buildInfo HTTP/1.1
User-Agent: HTTPie/2.0.0
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-alive
Cookie: SID=4L8f+2KKS/j3R6P9KJF2q9SECHf5MWDh
Authorization: Basic ZGV2c3RlcjpEZXZhc3RhdG9yMzE=
Host: <fqdn>

HTTP/1.1 302 Found
Location: https://<fqdn>/qbt/api/v2/app/buildInfo
Date: Sat, 08 Feb 2020 19:01:09 GMT
Content-Length: 5
Content-Type: text/plain; charset=utf-8

Found

GET /qbt/api/v2/app/buildInfo HTTP/1.1
User-Agent: HTTPie/2.0.0
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-alive
Authorization: Basic ZGV2c3RlcjpEZXZhc3RhdG9yMzE=
Cookie: SID=4L8f+2KKS/j3R6P9KJF2q9SECHf5MWDh
Host: <fqdn>

HTTP/1.1 200 OK
Content-Length: 101
Content-Security-Policy: default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; object-src 'none'; form-action 'self'; frame-ancestors 'self';
Content-Type: application/json
Date: Sat, 08 Feb 2020 19:01:09 GMT
Referrer-Policy: same-origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

{
    "bitness": 64,
    "boost": "1.65.1",
    "libtorrent": "1.2.3.0",
    "openssl": "1.1.1",
    "qt": "5.9.5",
    "zlib": "1.2.11"
}

Filter by the attributes available to sort option

When listing torrents, I'd like to be able to filter by the same torrent attributes available to the sort option.

For example, qbt torrent list -f SavePath "/media/torrents/files/"
This would list all torrents with the save path that matches "/media/torrents/files/"

ubuntu hirsute

Would it be possible to upgrade the ppa for ubuntu hirsute ?
actually i am using the ppa but with groovy version. work perfect.

Cannot assign requested address

Hi, the situation is pretty strange, and I'm not so able to understand why this happens, I'll try to explain what is and when happen the error.
I wrote a little bash script to extract listening port with this command
ACTUAL_QBITTORRENT_PORT=$($QBT_BIN server settings connection --username "$QBITTORRENT_USERNAME" --password "$QBITTORRENT_PASSWORD" --url "http://${QBITTORRENT_HOST}:$QBITTORRENT_PORT" --format json | $JQ_BIN '.ListenPort')
When I run it inside putty shell all works, the same when I use it from command line, but if I call the script from a systemd system I get the "Cannot assign requested address" error.
So this's the output if I launch the script

+ OWRT_UNAME=root
+ OWRT_IP_ADDR=10.0.0.1
+ QBITTORRENT_HOST=localhost
+ QBITTORRENT_USERNAME=admin
+ QBITTORRENT_PASSWORD=adminadmin
+ QBITTORRENT_PORT=8081
+ LOG_ENABLE=0
+ LOG_PATH=/tmp
+ [[ 0 == 1 ]]
+ [[ 0 == 1 ]]
++ command -v qbt
+ QBT_BIN=/usr/bin/qbt
++ command -v ssh
+ SSH_BIN=/usr/bin/ssh
++ command -v jq
+ JQ_BIN=/usr/bin/jq
+ [[ -z /usr/bin/qbt ]]
+ [[ -z /usr/bin/ssh ]]
++ /usr/bin/ssh [email protected] 'cat /tmp/pia-port-forward'
+ REMOTE_PIA_PORT=46786
+ [[ -n 46786 ]]
++ /usr/bin/qbt server settings connection --username admin --password adminadmin --url http://localhost:8081 --format json
++ /usr/bin/jq .ListenPort
+ ACTUAL_QBITTORRENT_PORT=46786
+ [[ 46786 == 46786 ]]
+ [[ 0 == 1 ]]

And this's the output when I call the script from the systemd

Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + OWRT_UNAME=root
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + OWRT_IP_ADDR=10.0.0.1
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + QBITTORRENT_HOST=localhost
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + QBITTORRENT_USERNAME=admin
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + QBITTORRENT_PASSWORD=adminadmin
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + QBITTORRENT_PORT=8081
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + LOG_ENABLE=0
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + LOG_PATH=/tmp
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + [[ 0 == 1 ]]
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + [[ 0 == 1 ]]
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: ++ command -v qbt
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + QBT_BIN=/usr/bin/qbt
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: ++ command -v ssh
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + SSH_BIN=/usr/bin/ssh
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: ++ command -v jq
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + JQ_BIN=/usr/bin/jq
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + [[ -z /usr/bin/qbt ]]
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + [[ -z /usr/bin/ssh ]]
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + REMOTE_PIA_PORT=1234
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + [[ -n 1234 ]]
Mar 14 16:46:36 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: ++ /usr/bin/qbt server settings connection --username admin --password adminadmin --url http://localhost:8081
Mar 14 16:46:40 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: Cannot assign requested address
Mar 14 16:46:40 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + ACTUAL_QBITTORRENT_PORT=
Mar 14 16:46:40 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + echo ''
Mar 14 16:46:40 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + [[ '' == 1234 ]]
Mar 14 16:46:40 Qnap qBittorrent_OPENWRT_Pia_Port.sh[29617]: + [[ 0 == 1 ]]

As you can see, the ACTUAL_QBITTORRENT_PORT var is not valid because of "Cannot assign requested address" error

Do you've any idea?

Label Support

Hey Guys -

Great tool - Currently using it along with other scripts to automate some of my downloads. It works very well, yet cannot figure out how (or feature is missing) to assign a label to a torrent/magnet when adding it using the CLI. The reason I require this is because the label assign designates the final save path for the download.

Is this currently possible or if not being considered? Thank You!

Request: For Powershell, output as object.

It'd be pretty cool, when using Powershell, to have the output in the form of objects instead of a complex string. It's tedious to parse. However, this may be a non issue as I'm certain that many are familiar with the format. I have no idea if changing the output aligns with the goals of this project either.

Last Active property

I'm trying to filter to get completed torrents and then I am interested in getting the last activity date. I do not see the activity date on the list of properties and --verbose does not seem to add any information.

My end goal is to delete from disk, all torrents that have not had activity in X days.

Sort by multiple attributes

I'd like to be able to have a more complex sort option so that it can sort by multiple attributes.

For example: qbt torrent list -s SavePath,Size
Would sort all torrents first by their save path, then within the save path group, it would sort them by size.

example data sorted by name:

torrent1 - 10MB - /media/torrents/files/
torrent2 - 5MB - /media/torrents/files/
torrent3 - 3MB - /media/torrents/otherfiles/
torrent4 - 1MB - /media/torrents/otherfiles/
torrent5 - 100MB - /media/torrents/bigfiles/

after the sort in the example would become:

torrent5 - 100MB - /media/torrents/bigfiles/
torrent2 - 5MB - /media/torrents/files/
torrent1 - 10MB - /media/torrents/files/
torrent4 - 1MB - /media/torrents/otherfiles/
torrent3 - 3MB - /media/torrents/otherfiles/

Issue with connecting when SSL is enabled

I have SSL enabled, but get the following error:

The SSL connection could not be established, see inner exception.
The remote certificate is invalid according to the validation procedure.

Is there a way for me force accept the SSL Cert in some config somewhere?

Thanks.

Request - raw data

Hi, is possible to have all the data not formatted?
I mean not this:

$ qbt torrent list --url http://localhost:8081
╒══╤═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╤══════╤══════════╤══════════╤═════════╕│ST│Name                                                                                                                       │Hash  │ DL Speed │ UL Speed │   ETA   │╞══╪═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╪══════╪══════════╪══════════╪═════════╡│SU│Emmerson Nogueira - Beatles                                                                                                │e70b53│    0  B/s│    0  B/s│         │└──┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────┴──────────┴──────────┴─────────┘

But this

ST	Name	Hash	DL Speed	UL Speed	ETA
SU	torrentname	torrenthash	0 B/s	0 B/s

I want to develop a little script to better handle torrent from qbittorrent and I found qbt that is pretty cool but I can't use the data in this way.
So I ask if is possible to use an extra --raw in order to have all data with no particular format, or if this is not possible, maybe a json format? so I still can use jq to better filter all

Thanks for your work, is very cool qbt.

set ratio when adding torrent.

Feature Request

There only currently appears to be the option to set the stop ratio of a torrent after adding via webui.

It would be beneficial to be able to set the ratio to torrents when adding them so one does not have to manually go to the webUI to do so.

Adding .magnet Files

Good Morning -

I found and tried qbittorrent-cli today and love it - thanks or your work! I do have one question/issue, though. I use NZBHydra2 which is hosted on a different system than qBittorrent. In order to grab downloads from it in the past when using Deluge / Deluge-CLI, I've had to configure it to save them to a BlackHole folder then added using deluge-cli.

Each of these files is saved as "downloadname.magnet" which if opened in a text editor only has a single line which is the magnet's URL (magnet:?xt=urn:bt...). I tried adding these using various qbt parameters, but wasn't able to. Attempting to add using "qbt torrent add file downloadname.magnet" resulted in the error "Response status code does not indicate success: 415 (Unsupported Media Type)."

I suppose I could script a workaround, but first wanted to see if there is currently a native way to add these using qbt parameters.

Thank You

Question about extended information

Hi, can I ask you if there's any way to extract all the tracker list from all torrents with sticky information in one shot?
I tried with torrent list --verbose but don't work like expected.
I'm writing a script to inject tracker inside the torrent but I don't want to inject tracker inside private torrent.
So, before starting I create a json list with torrent list --format json till here is fine, I can do some jq to extract all the info I need, but in this list I don't have any extra info about trackers list, I have basic information. Usually I grep/sed the magnet to see if contain some strings (a list of private trakers) and if not private I inject trackers.

Do you think can be possible have more information on torrent list? Ca be enough have Private, yes or no.

What do you think?

Repo error

Today started getting back

E: Failed to fetch https://dl.bintray.com/fedarovich/qbittorrent-cli-debian/dists/bionic/main/binary-amd64/Packages.gz  File has unexpected size (1103 != 1270). Mirror sync in progress? [IP: 34.214.69.171 443]

   Hashes of expected file:

    - Filesize:1270 [weak]

    - SHA256:8a7a3f1c110618151ef5611cea972bec95f17d72b0888ca569cc7814699d122b

    - SHA1:91e02eb198a48d3b9f0a7970f5f8f59b77c5703d [weak]

    - MD5Sum:23fd0c84047b6960e84731f1f4dcff0f [weak]

   Release file created at: Tue, 17 Dec 2019 06:45:46 +0000

Let me know if you need anymore information .

tracker add fails with UDP urls

Hey there,
I just started using the tool and love it. Thank you.
I did run into a issue so far. I'm trying to clear, download and updates the default tracker list and had some questions.

if you do a clear, is it intended that the enabled checkbox is unchecked? I noticed this occurred.

Does the command dedupe as it adds making the clear unneccessary as the first step?

When using udp:// trackers, it gives the below message and seems to need to be updated to allow them.
/opt/qbt/qbt server settings tracker add "$line"
The URL_1 URL_2 ... URL_N field is not a valid fully-qualified http, https, or ftp URL.

Specifying download location doesn't work for "qbt torrent add url"

Description
I tried adding a new torrent via URL, while specifying the download location, but I get an error saying that the command is not found.
This what my command looks like:

qbt torrent add url https://some_site.com/mytorrentfile --folder /home/user/Downloads

I also tried the -f option but it still doesn't work.

Expected result
Torrent is added successfully and is being downloaded to the specified folder.

Actual result
I receive the following error:
[2] 10951
--folder: command not found

The "[2] 10951" part makes me think that some kind of background job was created, but when I list the torrents via qbt torrent list, I don't see my new torrent.

Additional info
OS: Linux Mint 19.1
qbt version: 1.5.19350.1

Please let me know if I'm using the command incorrectly or if there's some workaround I can use.

Thank you!

Incompatible with torrent tags

Version 1.2.18320.1

When attempting to run qbt torrent list I get the following error:

Error converting value "Force" to type 'System.Collections.Generic.IReadOnlyCollection`1[System.String]'. Path '[127].tags', line 1, position 188543.
Could not cast or convert from System.String to System.Collections.Generic.IReadOnlyCollection`1[System.String].

The only thing I can think of that would have "Force" is some torrents that have been tagged.

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

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.

Request - extended properties

Hi is possible to have some extra command to be used with properties?

I mean properties return all properties of one torrent, but if I want only some data I've to grep and sed all output.
So is possible to have some like
qbt torrent properties-size HASH --url http://localhost:8081 -> to have the size
or
qbt torrent properties-seedingtime HASH --url http://localhost:8081 -> to have the seeding time

and so on?

Let me know if you think can be usefull

Jo

rename folders

there is an option to rename files , can an option be added to rename folders instead of files

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.