SamyPesse/tv.js — pull request #15 by jcutrell (2013-07-08 23:47:36+00:00)
Title: Adding a simple algorithm for picking a result

Here's a really simple algorithm for picking a winner that could be used. Basically, we assume that anything with a negative score is bad, and anything without a score might be okay; however, a score should be valued fairly highly, so we have a multiplier of 3. Then we check how many seeds this torrent has. Basically, the high priority here isn't the best video, but the *fastest* video.