NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 2 3 4 5 … 93 Next »
Getting more than 24 hours of Guide Data

 
  • 0 Vote(s) - 0 Average
Getting more than 24 hours of Guide Data
scJohn
Offline

Senior Member

Posts: 281
Threads: 41
Joined: Jun 2013
#1
2018-05-13, 09:37 PM
I am requesting 23:59:00 of guide data at a time by channelId. So 00:00:00 - 23:59:00 using:
/services/service?method=channel.listings&channel_id=7216&start=1526184000&end=1526270340&format=json

So for the current day(the 13th), everything is okay. But when I request tomorrow's guide (the 13th, or the 14th), I also get the 11:00 PM - 11:59 PM from the 12th. This results in 2 entries for the 12th at 11:00PM - 11:59 PM.

Is this the correct response? Is there an adjustment I can make to the parameter(s) so I do not get the last hour of the previous day?

Thanks.
Server:
CPU- Intel I5-8400, Ram -12GB, SSD - 128GB, HDD - 1TB, Turners - Hauppauge WinTV-quadHD, OS - Win 10 Home, Router - TP-Link Archer C7(AC1750).

Clients:
Intel NUC CPU - Intel N3700, RAM - 4GB, SSD - 128GB, OS - Win 10, Wired Ethernet.
shspvr
Offline

Senior Member

Posts: 419
Threads: 32
Joined: Jan 2004
#2
2018-05-15, 11:59 PM
scJohn Wrote:I am requesting 23:59:00 of guide data at a time by channelId. So 00:00:00 - 23:59:00 using:
/services/service?method=channel.listings&channel_id=7216&start=1526184000&end=1526270340&format=json

So for the current day(the 13th), everything is okay. But when I request tomorrow's guide (the 13th, or the 14th), I also get the 11:00 PM - 11:59 PM from the 12th. This results in 2 entries for the 12th at 11:00PM - 11:59 PM.

Is this the correct response? Is there an adjustment I can make to the parameter(s) so I do not get the last hour of the previous day?

Thanks.

I take that your using the tuner EPG ? then maybe you should signup for Schedules Direct there EPG good for 14 day
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,130
Threads: 957
Joined: May 2006
#3
2018-05-16, 01:21 AM
shspvr Wrote:I take that your using the tuner EPG ? then maybe you should signup for Schedules Direct there EPG good for 14 day

This is a developer sub forum question nt an end user issue.

The actual problem is that epg gude data start time equals the stop time of the previous listing.. The developer is left to deal with the nuance, not sure if sub should deal with it in the API or not. I figure adding one second to the start time would get the proper listng

Martin
shspvr
Offline

Senior Member

Posts: 419
Threads: 32
Joined: Jan 2004
#4
2018-05-16, 01:43 AM
I know it developer sub forum
Usely this happing when pull the EPG from tuner because they only give you about 24 hour of data and sometime it dose odd things I seen this happing with just about every DVR software that pull data off the tuner out there which is why I recommend to use 3rdparty EPG like Schedules Direct
I don't how EPG is done in Canada but here USA is not done very well that only get address when start rolling ATSC 3.0 then we will start long time EPG data 7 days or more directly off the tuner.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#5
2018-05-16, 04:20 AM
scJohn Wrote:I am requesting 23:59:00 of guide data at a time by channelId. So 00:00:00 - 23:59:00 using:
/services/service?method=channel.listings&channel_id=7216&start=1526184000&end=1526270340&format=json

So for the current day(the 13th), everything is okay. But when I request tomorrow's guide (the 13th, or the 14th), I also get the 11:00 PM - 11:59 PM from the 12th. This results in 2 entries for the 12th at 11:00PM - 11:59 PM.

Is this the correct response? Is there an adjustment I can make to the parameter(s) so I do not get the last hour of the previous day?

Thanks.
This call finds any listings that overlap with the start-end range specified. It effectively does this SQL query:

select * from EPG_EVENT where channel_oid=@channel_oid end_time >= @range_start_time and start_time <= @range_end_time

As Martin suggested, you could probably avoid including a show that ends exactly at the range start time by adding a second.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,544 2018-10-23, 07:24 AM
Last Post: almightyj
  Skin - view further into the future, scale the guide Vitenka 5 3,374 2014-11-26, 07:28 PM
Last Post: Vitenka
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,993 2014-11-14, 02:05 AM
Last Post: Benoire
  Merge xmltv data with xslt Graham 4 3,586 2014-01-02, 12:45 PM
Last Post: Graham
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,309 2013-03-24, 08:03 PM
Last Post: imilne
  Get NextPVR data directory from outside a plugin McBainUK 3 2,328 2012-02-11, 05:42 PM
Last Post: mvallevand
  Extracting data from XML files ACTCMS 4 2,430 2012-01-24, 12:16 AM
Last Post: sub
  C# code to get data directory? McBainUK 2 2,824 2011-09-19, 07:57 PM
Last Post: McBainUK
  Data binding imilne 2 2,021 2011-07-20, 08:57 AM
Last Post: imilne
  XMLTV data mvallevand 6 2,689 2011-04-16, 03:08 AM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode