Project

General

Profile

Bug #1481

DVB/EIT data not refreshed when recording starts

Added by Koen Kooi almost 7 years ago. Updated over 6 years ago.

Status:
Accepted
Priority:
Normal
Assignee:
Category:
EPG
Target version:
-
Start date:
2012-12-30
Due date:
% Done:

0%

Estimated time:
Found in version:
git d23f60b0311abc3d0b516bbd7ab5163e7cdfdc43
Affected Versions:

Description

When using an autorec rule the EIT data used is often the "far away" one with only basic info. When recording the EIT isn't always updated so the 'description' field will be empty. Using the 'refresh' button in the webui and restarting tvheadend seems to help.

Setup: DVB-C card connected to the ziggo network in the netherlands, no EPG grabbers besides DVB/EIT.

This makes debugging issue #1462 a lot harder.

History

#1

Updated by Adam Sutton almost 7 years ago

  • Status changed from New to Accepted

It's possible that the EPG information will not come in until after the recording starts. Will need to consider how best to handle this, possibly need to add a short delay into the DVR code to allow time for EITpf data to be received.

Adam

#2

Updated by Adam Sutton almost 7 years ago

  • Affected Versions 3.2, 3.4 added
#3

Updated by Koen Kooi almost 7 years ago

In autorec mode the ~/.hts/tvheadend/dvr/log/ files are written it first pops up on EIT, which is 3AM here:

Jan 08 03:01:32 soekris tvheadend10686: dvr: "Mythbusters" on "Discovery Channel HD" starting at 2013-01-11 13:09:00, scheduled for recording by "Auto recording by: koen"
Jan 08 03:01:32 soekris tvheadend10686: Jan 08 03:01:32 [INFO]:dvr: "Mythbusters" on "Discovery Channel HD" starting at 2013-01-11 13:09:00, scheduled for recording by "Auto recording by: koen"

At that point it only has the basic EIT info, not the complete one that will be added approximately 24 hours before the recording.

So it looks like this will only happen for autorec recordings.

#4

Updated by Koen Kooi over 6 years ago

I have found a workaround, this cronjob runs at 7 in the morning each day:

for file in $(ls /home/root/.hts/tvheadend/dvr/log) ; do
if grep -q "filename" $file ; then
echo Recording present $(basename $file): $(grep filename $file | awk -F: '{print $2}')
else
rm $file
fi
done

killall tvheadend

Systemd will restart tvheadend automatically which will restore the autorec entries, this time with proper metadata.

#5

Updated by Reinhard Mantey over 6 years ago

Yesterday I was trapped by another sideeffect of this bug:
If a schedule of an autorec happens to fire after i.e. a footbol game, which extends about an hour, time entries of the epg-event will change (multiple times probabely), but the recording will be performed with the old timings, resulting in a broken recording.

Channel was SF2 at Fri 4/12 00:10 - no external epg.

Also available in: Atom PDF