Jump to content

Problems with EPG Look up per api

Recommended Posts


I wanted to check future timers via API and deactivate them if necessary.
I found out that the EPGID / Eventid in timers is not reliable. 
Here my example:

// get all timers

<Timer Type="1" ID="{358BC799-170B-4F0E-B141-8E2815590BD9}" Enabled="-1" Charset="255" Date="31.03.2020" Start="20:09:00" Dur="76" End="21:25:00" PreEPG="5" PostEPG="10" IntID="703" Priority="50" Action="0" EPGEventID="30401">
Navy CIS - Operation Kuckucksnest Crime-Serie, USA 2018 Alter
<Options AdjustPAT="-1" AllAudio="-1"/>
<Source>Search:Navy CIS - Sat 1</Source>
<Channel ID="2359890960361473116|SAT.1" EPGID="577023706624377948"/>

// get epg for this timer

<!-- by DVBViewer Media Server -->
<epg Ver="1"/>

// get epg for the whole channel

 <programme start="20200331201400" stop="20200331211500" channel="577023706624377948">
<title>Navy CIS</title>
Operation Kuckucksnest Crime-Serie, USA 2018 Altersfreigabe: ab 12
Der NCIS-Director Leon Vance ...

Different epgid / eventid

Same session calls within 3 Minutes.

Please inform me what I should provide to reproduce the error.
I suspect that a change of the EPGID (for whatever reason) does not lead to a change of the timer database and thus an outdated value is returned.

Side request: 
Would it be possible to provide the corresponding EPG with the timers on request?






Share this post

Link to post

EPGID="577023706624377948" aka channel=577023706624377948 are reliable and consistent, as long as the Service ID, TransportstreamID, NetworkID and the tuner type of the channel don't change. That's just a way to identify the channel to which EPG data belongs.


The Event ID is only reliable if the broadcaster handles it reliably. It should be unique and remain the same until the event has vanished from the EPG. Unfortunately some broadcasters don't give a damn about it. For example, they change the Event ID each time when the start time of a programme changes, even if it's only one minute, or on each EPG update. That completely defies the purpose of the Event ID and makes it unusable for finding an EPG data entry again that has been stored some time ago.


That's why the DMS EPG monitoring function does not use the Event ID by default (it can be enabled by a tweak, though), but only PDC, if available.


Share this post

Link to post

Thanks for the quick feedback.

But I don't understand how the web interface manages to establish this broken connection (no epc, wrong epgid). The timer list shows the correct event at the mouse flyover.

Is this information stored somewhere and can I access this information?
Here are a few screenshots to illustrate this. 
1. flyover web interface, display of a timer
2. XML result timer query
3. XML result epg query with the data from the timer.
4. XML result epg query of the entire channel. (sorry, wrong item marked)


Btw: Is lvl=2 for epg queries still mandatory?





Edited by DetlefM

Share this post

Link to post

Here are some additional experiences I made with the api/epg function:
Also the attempt to localize the entry in the EPG database via pdc often fails. 
What I haven't tested yet is: Delete all timers, let the media server recreate all timers and then fetch directly afterwards all EPG entries connected to the timers for an evaluation.
I enclose a test program in Python (because of the simplicity) with a log of a run. The Python file is zipped.

For my request it would be very helpful if the information of the EPG event would be made separately persistent when the timer is generated by the media server. In this case other searches within an updated epg would be possible, e.g. by title or event description.


I am grateful for hints.

t.txt ms_timercheck.zip

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...