fagga/transmission-remote-cli — pull request #79 by Oddegamra (2012-07-06 10:28:56+00:00)
Title: Indicate all trackers are down by coloring torrent line red

I am in a situation where I am seeding a good amount of torrents for an extended period of time. As it stands, trackers often change ports, locations or go down for good, which in turn requires that associated torrents must be re-downloaded with updated tracker information. Right now, transmission-remote-cli doesn't seem to provide a good visual indicaton when a torrent is effectively dead, and the user has to check the tracker page for each torrent individually.

The idea here is to add a new color indicating tracker error (I chose red background and white foreground, but this just a suggestion), and color a torrent line differently if its trackers cannot be reached. Thus, defunct torrents can be easily detected just by looking at the torrent list overview.

Essentially, a torrent is considered defective if none of its trackers provide a successful scrape or announce. I originally planned to query only `lastScrapeSucceeded`, but then decided to use either `lastAnnounceSucceeded` or `lastScrapeSucceeded`, depending on which was done more recently (`lastScrapeTime` vs. `lastAnnounceTime`). I'm not perfectly certain this is the best way to approach the problem, as I'm not well versed in the BitTorrent protocol, but it seems to provide reasonable results.