Comments (5)
oh I see, it handles separately if hash is an argument and if it can only optionally be used for filtering.
Thanks for the help!
from qbittorrent-cli.
What version are you running and on what system?
The first command does not work because it's missing the --hash
or -H
(as specified in qbt torrent list --help
).
The second command works, and looks fine.
I can get the 3rd command to work in pwsh on my end, but in your example it's missing the opening (
, it should be:
(qbt torrent list --url $WebURL --hash $Hash -F json | ConvertFrom-Json).state
from qbittorrent-cli.
qBittorrent CLI v1.8.24012.1
Windows 10 22H2
Fixed opening - still issue, doesnt work in my script, idk why
$Trackers = (qbt torrent tracker list --url $WebURL --hash $Hash -F json | ConvertFrom-Json).url
from qbittorrent-cli.
I won't know exactly what is wrong w/o seeing the contents of the script, but the double quoted strings might be the issue.
Does it work correctly if you drop the internal '
s?
Replacing
"'
with "
and
'"
with "
in all of the -Parameter
values?
from qbittorrent-cli.
Oh I see the disconnect.
When calling qbt torrent list
you need to provide -H
or --hash
, but it's not required for tracker
(see qbt torrent tracker list --help
).
$Trackers = (qbt torrent tracker list --url $WebURL $Hash -F json | ConvertFrom-Json).url
if you use that it'll give you an array of all the tracker URLs for the provided torrent/hash.
edit: the error you're getting when you drop the --hash
makes me think the extra '
in your hash string are to blame, since they show up around the hash after Unrecognized command or argument
.
from qbittorrent-cli.
Related Issues (20)
- Cannot find property HOT 2
- FreeBSD support? HOT 1
- Tags question
- How I prefer to view the output of 'gbt torrent list'
- RSS rule's save path editing doesn't work on qBittorrent 4.6
- Stopped working says key not valid HOT 1
- Filename is incorrectly interpreted as glob pattern HOT 1
- ubuntu mantic HOT 1
- Padding is invalid and cannot be removed. HOT 3
- Add Client Settings to CLI
- Build Alpine packages against libssl 3
- Invalid output with command "rss feed info" HOT 1
- [Feature request] Command to reload the ip-filter
- Add to winget
- Remove torrents with a certain set category HOT 2
- apt-key is deprecated HOT 1
- /usr/bin/qbt --- file or directory not found inside docker container HOT 7
- [help needed] How to match? Is there regex or wildcard characters? Missing documentation and options. Please help.
- Renaming folders
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qbittorrent-cli.