Skip to content

servicedvbrecord - retry EIT file creation after initial failure - #4358

Merged
WanWizard merged 1 commit into
OpenPLi:scarthgapfrom
ims21:scarthgap
Jul 18, 2026
Merged

servicedvbrecord - retry EIT file creation after initial failure#4358
WanWizard merged 1 commit into
OpenPLi:scarthgapfrom
ims21:scarthgap

Conversation

@ims21

@ims21 ims21 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor
  • prepare() is called before the receiver tunes to the channel being recorded, so event may not yet exist in the EPG cache.
  • if the initial .eit creation fails for this reason, store the required parameters and retry once after 30 seconds.

- prepare() is called before the receiver tunes to the channel being recorded, so the event may not yet exist in the EPG cache.
If the initial .eit creation fails for this reason, store the required parameters and retry once after 30 seconds.
@jbleyel

jbleyel commented Jul 17, 2026

Copy link
Copy Markdown

Can you please explain how to reproduce the issue?
I have never seen an empty or missing eit file.

@ims21

ims21 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

Can you please explain how to reproduce the issue?
I have never seen an empty or missing eit file.

Just set a timer well in advance on a channel you rarely tune to, then make sure the EPG cache gets cleared.

Since prepare() (which looks up the event in the EPG cache and creates the .eit file) is executed about 20 seconds before the recording actually starts, the event is no longer present in the EPG cache at that moment, so the .eit file is not created.

A common way to reproduce this is to enable clear EPG before scan in EPGRefresh and use a short dwell time per transponder.

@ims21

ims21 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

Example , when I had there debug:

saveEventToFile failed
eitret=-1
eit_event_id=20684
begTime=1783287300
endTime=1783293900
ref=1:0:1:3736:C8E:3:EB0000:0:0:0:
now=1783287280
queryTime=1783290600
lookupEventId=-1
lookupEventTime(begin=1783287300)=-1
lookupEventTime(middle=1783290600)=-1
lookupEventTime(end-1=1783293899)=-1

@WanWizard
WanWizard merged commit 11dc2a9 into OpenPLi:scarthgap Jul 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants