tvheadend/tvheadend — pull request #138 by sofakng (2012-09-05 17:05:58+00:00)
Title: Added support for recording and displaying new/repeat episodes

This PR adds support for recording "New Episodes" versus "Repeat Episodes".

The EPG has a new column ("Repeat") which displays if a program is a New Episode or a Repeat. (i.e. was this program ever aired or is it the first time it's broadcast?) Similarly, there is a new filter to show only new or all episodes.

AutoRec has been modified to also allow recording of only new episodes (or all episodes).

(This PR was created because I didn't like recording every episode of a particular program and then later going back and deleting the repeat/rerun episodes manually. This also saves you time because you don't need to know what timeslot that new airings are broadcast since you just create rules such as: "Record MythBusters - New Episodes Only")

NOTE: This has only been tested with xmltv EPG source. It shouldn't break other EPG sources but I'm not sure if this supply the neccessary is_repeat flag.