Giter Site home page Giter Site logo

Comments (6)

Jorman avatar Jorman commented on June 27, 2024

I think the same.
Would be very useful have a kind of simplified output, like a plain output, in my case for different purpose, I'm trying to adapt my script to inject tracker list inside the torrent, the actual version is for transmission, and this's exactly what I need, a clean output, so I can awk or sed or whatever it and take the plain result for each torrent I inquire

Can you simplify it?

J

from qbittorrent-cli.

fedarovich avatar fedarovich commented on June 27, 2024

Well, I had an idea to include different output formats for all commands and even to add the possibility to create custom formats. But I really don't know when I will implement this functionality.

But regarding torrent list command, it already has alternative output mode. If you run it like that:

qbt torrent list --verbose

it will output data in another format. It seems to be more parseable, so maybe it will suit you.

from qbittorrent-cli.

Jorman avatar Jorman commented on June 27, 2024

Thanks I'll try to see what I can do with the --verbose option.

In my opinion the best is to have all the list in a table style, so can be quite easy extract all the info, then one command to interrogate each hash torrent but with a possibility to ask only determined information, for example the basic command:
qbt torrent properties 671a60 -> the actual command to see about all data for the selected torrent
can be extended with extra command like

qbt torrent properties seed_time 671a60
qbt torrent properties state 671a60
qbt torrent properties size 671a60

... and so on for all data available.
I don't know if this can make the difference or if is easier to implement to you, is only my point of view :D

What do you think about?

from qbittorrent-cli.

BoomBrush avatar BoomBrush commented on June 27, 2024

I tried with the --verbose option, which works by command line but it still doesn't work when coming from C#. I think the issue is because it's rendering yellow text. My suggestion would be when using the --verbose, maybe take away all use of fancy colour.

I think this because when I try running "qbt torrent list -h" I get perfect results. Really, whenever there is no colour and no funny characters I always get the result. As soon as you introduce colour or a ═ it breaks.

If you allowed the --verbose (to remove colour and fancy characters) to work with both "torrent list" AND "torrent properties" that would be really cool.

from qbittorrent-cli.

fedarovich avatar fedarovich commented on June 27, 2024

@BoomBrush, by the way, if you want to get this information in a C# application, it may be easier to use the underlying library, qBittorrent .Net Client, directly. It is available on Nuget nuget

from qbittorrent-cli.

fedarovich avatar fedarovich commented on June 27, 2024

See https://github.com/fedarovich/qbittorrent-cli/wiki/Output-Formats

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.