ludviglundgren / qbittorrent-cli

Cli to manage qBittorrent
MIT License
161 stars 18 forks source link

Filter qbt list command by torrent state. #40

Closed xel86 closed 1 year ago

xel86 commented 1 year ago

Allows for the qbt list command to be filtered to list only the torrents specified by a state argument, like downloading.

For example: qbt list --filter=active will list all active torrents currently downloading or uploading. qbt list will continue to list all torrents.

New flags:

Also removed the uploading TorrentFilter from domains.go since it is not a valid filter for the qbittorrent api, and added the missing errored filter. (https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#get-torrent-list)

Fixes #46

xel86 commented 1 year ago

Sorry about that, been very busy lately and completely forgot about this PR. Thanks for the improvements :)