midgetspy/Sick-Beard — pull request #484 by lloesche (2012-09-23 21:47:16+00:00)
Title: On home page show number of days remaining till next episode airs

Changed the "Next Episode" column to display the number of days until the next episode, in addition to the date itself.

Code might require cleanup as this is the first time I ever do anything in Python.
Esp. the "if $airDateDelta.days > 1" part, which I would have done inline as (if foo > 1 ? 's' : '') in any other language, but found out Python doesn't support that Syntax.

Also the string formatting is debatable as it's no longer nicely centered.

But the intention of this patch is that the number of days remaining until the next episode airs is more meaningful than the air date itself where the brain has to do the calculation of the delta.