Bug #1702

Automatic Recorder Only Picks Up One Occurrence of a Programme

Added by Prof Yaffle over 8 years ago. Updated over 8 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Found in version:
Affected Versions:


I suspect that this is related to an issue that Adam bludgeoned a workaround for, in which you couldn't manually add two recordings of the same programme.

Here's the precis: I'm recording Suits on Dave (UK) each week for my wife. She really, really won't be happy if I miss it - so I record a couple of different broadcasts, just to be sure (I'm still getting over past problems with dodgy tuners :) ).

I have an autorec rule like this: Enabled, "Suits", on Dave, on Thursdays.

That creates an autorec file like this:

[email protected]:~/.hts/tvheadend/autorec$ more 1
        "id": "1",
        "enabled": 1,
        "creator": "xbmc",
        "comment": "Created from EPG query",
        "channel": "Dave",
        "contenttype": 0,
        "title": "Suits",
        "approx_time": 0,
        "weekdays": "4",
        "pri": "normal" 

All good - except it only picks up the 21:00 transmission. There's another one at 23:40 which it doesn't match.

I can add the second instance manually, so it's not the end of the world, but something's not working correctly. Series link isn't enabled yet it appears that it's suppressing the second broadcast because I already have that episode (perhaps).

EPG grabbers enabled are Open TV: Sky UK, UK: Freeview, UK: Freesat and EIT: DVB Grabber, if that's relevant.

OS is Ubuntu Precise with an updated kernel:

Linux Server 3.5.0-27-generic #46~precise1-Ubuntu SMP Tue Mar 26 19:33:21 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

... although it happens on my other boxes as well.

Tuners are varied - it happens on my DVB-T2 and -T tuners on different systems.



Updated by Prof Yaffle over 8 years ago


FIW, tuners are:

  • a DiBcom 7000PC Win-Nova-T DVB-T USB stick and
  • a Sony CXD2820R PCTV 290e DVB-T2 USB stick

Updated by Adam Sutton over 8 years ago

  • Status changed from New to Accepted

Weird! I can actually repeat this, but only for Dave, not Dave HD!

What the heck is going on there! I'll take a look.



Updated by Adam Sutton over 8 years ago

  • Status changed from Accepted to Rejected

Hmmm, well ok, no idea why it records both on HD (dodgy EPG data maybe).

But this is actually correct behaviour, autorec will not record duplicates of the same show and this is a repeat (I've checked the sky TV guide to be sure). The dup detection in this case is being done based on the broadcaster ID (I don't do pseudo dup detection anymore).

I completely missed that point in your initial report.

The only way to stop this at the moment would be to override the dup detection in code (when I finally get around to redoing the DVR stuff I'll make sure this is configurable).

Edit src/dvr/dvr_db.c dvr_entry_create_by_autorec(epg_broadcast_t *e, dvr_autorec_entry_t *dae)
and remove the line:

if (_dvr_duplicate_event(e)) return;



Updated by Prof Yaffle over 8 years ago

All-righty - I can live with that if it's functionality as specified - thanks for the quick response. Yes, it's definitely a repeat, that's the intention

Looks like there's a problem on Dave HD, though, then :-)

Cheers, Adam. Thanks for all the continued work on tvheadend.

Also available in: Atom PDF