Giter Site home page Giter Site logo

Hash argument is bugged about qbittorrent-cli HOT 5 CLOSED

foxi69 avatar foxi69 commented on August 9, 2024
Hash argument is bugged

from qbittorrent-cli.

Comments (5)

foxi69 avatar foxi69 commented on August 9, 2024 1

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.

sir-wilhelm avatar sir-wilhelm commented on August 9, 2024

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.

foxi69 avatar foxi69 commented on August 9, 2024

qBittorrent CLI v1.8.24012.1
Windows 10 22H2

Fixed opening - still issue, doesnt work in my script, idk why

kép
$Trackers = (qbt torrent tracker list --url $WebURL --hash $Hash -F json | ConvertFrom-Json).url

kép
Without '--hash'

from qbittorrent-cli.

sir-wilhelm avatar sir-wilhelm commented on August 9, 2024

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.

sir-wilhelm avatar sir-wilhelm commented on August 9, 2024

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)

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.