fedarovich / qbittorrent-cli

Command line interface for QBittorrent
MIT License
303 stars 16 forks source link

Search for hash, name etc in list or json #29

Closed foxi69 closed 4 years ago

foxi69 commented 4 years ago

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"

fedarovich commented 4 years ago

Hello,

in powershell you can use something like that:

((qbt torrent list -F json | ConvertFrom-Json) | where { $_.name -eq "Something" }).hash
foxi69 commented 4 years ago

Oh well, so we can close it :D thanks for this help!!