How to sort on total number of seeds ?

shwetha17

Member
May 24, 2018
785
0
16
When I click on the Seeds (same for Peers) to sort on that column I do not obtain any recognizable sort order. I would like the column to be sorted by the TOTAL number of seeds.

For example in the snapshot from my rutorrent interface shown below, I would like to have the lines with 1427, 964 and 383 seeds in the top rows:

s88jc1.png

Thank you very much in advance
 

somus1735

Member
May 25, 2018
833
0
16
Table is sorted by the *available* peers/seeds. I think, sorting by total is a needless. But you may to write your own plugin for that.
 

shwetha17

Member
May 24, 2018
785
0
16
I think sorting by total number is important. Imagine you are running out of space on your machine. If you deleted the best seeded torrents you are not leaving "rare" stuff badly seeded plus the probability of you uploading in a swarm of 1427 seeds is very small :)

Can you kindly point me towards any tutorial / documentation on how to write a plugin ?

Thank you very much.
 

somus1735

Member
May 25, 2018
833
0
16
Can you kindly point me towards any tutorial / documentation on how to write a plugin ?
It doesn't exist. See existing plugins for examples.
As quick hack for solve your problem - in plugin 'show_peers_like_wtorrent' replace lines
Code:
torrent.seeds = torrent.seeds_actual + " (" + torrent.seeds_all + ")";
...
torrent.peers = torrent.peers_actual + " (" + torrent.peers_all + ")";
to
Code:
torrent.seeds = torrent.seeds_all + " (" + torrent.seeds_actual + ")";
...
torrent.peers = torrent.peers_all + " (" + torrent.peers_actual + ")";
This will exchange total and actual peers/seeds on the UI, and, as result you will get your sorting order.