Giter VIP home page Giter VIP logo

Comments (5)

lgallard avatar lgallard commented on September 1, 2024

This cannot be done unless the "Added on" is included in the torrent generic properties fields as explained here:

qbittorrent/qBittorrent#3769
qbittorrent/qBittorrent#2255

from qbittorrent-controller.

sledgehammer999 avatar sledgehammer999 commented on September 1, 2024

@lgallard I suggest you open a new issue on our tracker detailing your requirements. The dev team might be able to help/implement. @buinsky @ngosang

from qbittorrent-controller.

lgallard avatar lgallard commented on September 1, 2024

@sledgehammer999 thanks.

With the addition_date (when this torrent was added) and the completion_date (torrent completion date) are enough.

I will implement the sorting option in the next release.

from qbittorrent-controller.

lgallard avatar lgallard commented on September 1, 2024

I don't know if I should ask it here or open another issue, but even though the addtion_date and completation_date exists, that information can only be got from the torrents generic properties, and not in the torrent list. It would be nice to have it in the torrent list.

Why? Because those values can be used to sort the torrent list. But the app must make a request for each torrent on the torrent list and then sort them. This means, if you have 100 torrents and want to sort by completation_date you must get the torrent list and then iterate over that list to make 100 request, one per torrent.

If you check µTorrent API, it has the "Created on" (Added on") and "Completion on" in the torrent list:

    "torrents": [
            [ HASH (string),
            STATUS* (integer),
            NAME (string),
            SIZE (integer in bytes),
            PERCENT PROGRESS (integer in per mils),
            DOWNLOADED (integer in bytes),
            UPLOADED (integer in bytes),
            RATIO (integer in per mils),
            UPLOAD SPEED (integer in bytes per second),
            DOWNLOAD SPEED (integer in bytes per second),
            ETA (integer in seconds),
            LABEL (string),
            PEERS CONNECTED (integer),
            PEERS IN SWARM (integer),
            SEEDS CONNECTED (integer),
            SEEDS IN SWARM (integer),
            AVAILABILITY (integer in 1/65535ths),
            TORRENT QUEUE ORDER (integer),
            REMAINING (integer in bytes),
            DOWNLOAD URL (string),
            RSS FEED URL (string),
            STATUS MESSAGE (string),
            STREAM ID (string),
            => ADDED ON (integer in seconds), <=
            => COMPLETED ON (integer in seconds), <=
            APP UPDATE URL (string) ],

Another solution could be to have a sort field for completation_date and addition_date (like name, size, priority sorting),and have the torrent list sorted from qBittorrent.

@buinsky @ngosang @sledgehammer999 what do you think?

from qbittorrent-controller.

sledgehammer999 avatar sledgehammer999 commented on September 1, 2024

I am removing myself from notifications, since I am not involved with the web API.

from qbittorrent-controller.

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.