<div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 26 Feb 2019 at 10:53, John Pilkington <<a href="mailto:johnpilk222@gmail.com">johnpilk222@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 26/02/2019 10:25, Stephen Worthington wrote:<br>
> Without having a copy of the EPG data it is hard to tell exactly what<br>
> the problem is, but my guess is that it is the usual problem - bad EPG<br>
> data.  Ideally, the EPG data will be like this example from New<br>
> Zealand's Choice TV channel:<br>
> <br>
>          <programme channel="<a href="http://choice.freeviewnz.tv" rel="noreferrer" target="_blank">choice.freeviewnz.tv</a>"<br>
> start="20190305153000 +1300" stop="20190305163000 +1300"><br>
>                  <title>Birds of Paradise: The Ultimate Quest</title><br>
>                  <desc>Frank Gardner has always dreamed of seeing birds<br>
> of paradise. Frank and Benedict Allen journey across some of Earth’s<br>
> most inhospitable terrain, both haunted by brutal memories from their<br>
> pasts.</desc><br>
>                  <episode-num<br>
> system="dd_progid">BOPUQ01Ep1</episode-num><br>
>                  <rating system="Freeview"><br>
>                          <value>G</value><br>
>                  </rating><br>
>          </programme><br>
> <br>
Stephen:  I haven't seen this sort of data before.  Just haven't looked <br>
hard enough, I suppose.   How?<br></blockquote><div> </div><div>If I am correct in thinking that this is mapped to ProgramId, then you can get this information for any episode from the database via the MythTV services API.</div><div><br></div><div>Try this on your back-end:</div><div><br></div><div>curl -H 'Accept: application/json' '<a href="http://localhost:6544/Guide/GetProgramDetails?StartTime=2019-02-28T21:00:00&ChanId=1101">http://localhost:6544/Guide/GetProgramDetails?StartTime=2019-02-28T21:00:00&ChanId=1101</a>'</div><div><br></div><div>You should replace StartTime with an appropriate near-future starting time for which you have EPG data for the show you are interested in and replace ChanId with an appropriate ChanId on your system on which that show is aired.</div><div><br></div><div>You will probably find ProgramId in the output somewhere between lines 3 to 6.</div><div><br></div><div>Cheers, Ian</div><div><br></div></div></div></div>