fedarovich / qbittorrent-cli

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

[Feature Request] Allow selection of CSV fields #57

Open bmfrosty opened 2 years ago

bmfrosty commented 2 years ago

I've been looking through your documentation, but I can't seem to find an option for this.

Currently I have a script:

while true ; do
        qbt torrent list -f active --sort EstimatedTime -F 'csv:delimiter=\t' | awk 'BEGIN { FS = "\t" } ; { print $15"\t"$13"\t"$2"\t"$1"\t"$6"\t"$7"\t"$14"\t"$18 }' | column -ts $'\t' > /tmp/qbt.txt
        clear
        cat /tmp/qbt.txt
        sleep 2
done

to print some output and basically have a activity status in a terminal.

It would be very nice if I could do something like this instead - for both script maintenance and creation:

 qbt torrent list -f active --sort EstimatedTime -F 'csv:delimiter=\t' --fields 'State,Ratio,Name,Hash,DownloadSpeed,UploadSpeed,EstimatedTime,Category' | column -ts $'\t' > /tmp/qbt.txt

Doubly so if there were a built-in watch command as well.

Also if there were like a human mode for fields like UploadSpeed, Hash, and Ratio. Current output is fairly wide.