NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
1 2 3 4 5 … 93 Next »
is there a service?method which returns listings for multiple channels?

 
  • 0 Vote(s) - 0 Average
is there a service?method which returns listings for multiple channels?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2013-07-17, 06:03 AM
as title, I'm wanting to grab epg listings hopefully using the standard api, and I don't want to have to load one channel at a time.

Is there a call which you can specify either a range of channeloids or just get all the epg data given a date range?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2013-07-17, 11:29 AM
Currently the "method=channel.listings" call returns listings for a single channel specified, or if channel_id=000 then it'll return all listings for all channels.

I could probably fairly easily modify it to support multiple channels, with a comma separated list of channels passed in. ie "method=channel.listings&channel_id=1,2,3,4,5"
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2013-07-17, 11:46 AM
cheers sub, yes could you please add in support for multiple channel ids, it would reduce the number of http requests i have to do (000 channel id would be too much data if they have lots of channels).
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#4
2013-07-17, 11:54 AM
OK. I'm away right now, but I can add this when I'm back.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2013-07-17, 11:56 AM
cool, ill try and remember to bump this thread when you get back.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#6
2013-07-30, 11:17 AM
just tried channel_id=000 but sadly i'm getting an error

Code:
2013-07-30 23:15:58.702    [DEBUG][4]    Got Web Request (192.168.1.37): /service    method=channel.listings&channel_id=000&start=1375182540&end=1375193340&sid=f7e37a348f324e6c84bc214c39b864ce
2013-07-30 23:15:58.702    [DEBUG][4]    method=channel.listings
2013-07-30 23:15:58.702    [DEBUG][4]    parameters:
2013-07-30 23:15:58.702    [DEBUG][4]       method: channel.listings
2013-07-30 23:15:58.702    [DEBUG][4]       channel_id: 000
2013-07-30 23:15:58.702    [DEBUG][4]       start: 1375182540
2013-07-30 23:15:58.702    [DEBUG][4]       end: 1375193340
2013-07-30 23:15:58.702    [DEBUG][4]       sid: f7e37a348f324e6c84bc214c39b864ce
2013-07-30 23:15:58.702    [DEBUG][4]       client_ip: 192.168.1.37
2013-07-30 23:15:58.702    [DEBUG][4]       host_callback: batman:8866
2013-07-30 23:15:58.702    [DEBUG][4]       physical_path: C:\Users\Public\NPVR\web\
2013-07-30 23:15:58.702    [DEBUG][4]       user_agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36
2013-07-30 23:15:58.702    [DEBUG][4]       range:
2013-07-30 23:15:58.702    [DEBUG][4]       requested_path: /service
2013-07-30 23:15:58.710    [ERROR][4]    Unexpected error in LoadListingByAdvancedRules: System.NullReferenceException: Object reference not set to an instance of an object.
   at NShared.Extend.ChannelRequestHandler.GetListings(Dictionary`2 parameters)
2013-07-30 23:15:58.710    [ERROR][4]    Unexpected error in Stream.Channel(): System.NullReferenceException: Object reference not set to an instance of an object.
   at NShared.Extend.ChannelRequestHandler.GetListings(Dictionary`2 parameters)
2013-07-30 23:15:58.711    [DEBUG][4]    <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
  <err code="2" msg="Invalid Args" />
</rsp>

2013-07-30 23:15:58.711    [DEBUG][4]    <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
  <err code="2" msg="Invalid Args" />
</rsp>
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2013-07-30, 01:15 PM
I've found the cause of this, and fixed it for the next release.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#8
2013-07-31, 12:02 AM
cheers sub, im counting the days until you get back Smile
mandai
Offline

Junior Member

UK
Posts: 9
Threads: 1
Joined: Nov 2020
#9
2022-04-10, 03:01 PM (This post was last modified: 2022-04-10, 03:02 PM by mandai.)
When I use channel.listings&channel_id=000 it gives an empty result
<rsp stat="ok">
<listings> </listings>
</rsp>
Is there any way to fix that? It works when I enter a different channel id.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#10
2022-04-10, 03:27 PM
There won't be a channel oid that low. What are you trying to do?

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  API request returns xml on error scJohn 4 1,852 2020-08-25, 05:41 PM
Last Post: sub
  NextPVR "Service" Backend? jcole998 5 4,728 2018-05-24, 01:17 PM
Last Post: jcole998
  Channels List by Channel Group Name scJohn 1 2,728 2018-01-05, 10:45 PM
Last Post: mvallevand
  Switching Audio Channels spitefulgod 0 1,973 2016-12-15, 08:42 PM
Last Post: spitefulgod
  Transcoding service mvallevand 27 12,280 2016-08-26, 07:43 PM
Last Post: sub
  Getting all channel listings - decimal channel numbers psycik 11 8,091 2015-12-13, 02:17 AM
Last Post: seejaydee
  Show artwork method psycik 31 11,647 2015-07-14, 07:06 AM
Last Post: aloxinh
  Time to make Touch web Service less experimental fred250 106 27,771 2014-06-15, 09:13 PM
Last Post: fred250
  Merged channels mvallevand 3 2,597 2014-04-11, 04:55 AM
Last Post: mvallevand
  couple of issues with recording.recurring.save method reven 10 4,624 2014-01-03, 11:11 PM
Last Post: reven

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

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

Linear Mode
Threaded Mode