Highlight seeding torrents in case of any problems with trackers
ClosedPublic

Authored by trufanov on Mon, Nov 4, 3:25 AM.

Details

Summary

The idea is to highlight completed torrents that have no chance to continue seeding (all trackers are disabled or have error state and none of which are timeouts) with red. Highlight torrents which seeding may continue automatically soon (all trackers are with error or warning state but some errors are timeouts) with some greenish. And to highlight torrents that supposed to be seeding but still have some warnings (all tracker states contain warning messages) with some yellowish.
In case at least one tracker reports OK state with no warning - it will be left green as default.

I'm not sure in color scheme and going to test a few things a bit more.
Ideally there shall be a setting to change colors.

Continues https://git.reviewboard.kde.org/r/130032/diff/2/
Requires libktorrent feature: https://phabricator.kde.org/D25136

P.S. I've found out that some bittorent trackers may return "Torrent is not registered" message under "warning message" key instead of "failure reason", but I believe this is a server side problem and misusing of BEP.

Diff Detail

Repository
R473 KTorrent
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
trufanov requested review of this revision.Mon, Nov 4, 3:25 AM
trufanov created this revision.
stikonas accepted this revision.Tue, Nov 12, 12:46 AM
This revision is now accepted and ready to land.Tue, Nov 12, 12:46 AM
This revision was automatically updated to reflect the committed changes.