NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 3 4 5 6 7 … 93 Next »
Getting all channel listings - decimal channel numbers

 
  • 0 Vote(s) - 0 Average
Getting all channel listings - decimal channel numbers
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#1
2015-11-30, 02:53 AM
With my plex channels I've been notified that if the channel ids contain decimals they do not seem to be picked up.

It's only for like TV that I need all the listing so I tend to use: /service?method=channel.listings.current&sid=plex&client=abc

Looking at the output received by this command it doesn't seem to include all of the decimal placed channels.

I see you post a /service?method=channel.list for kodi, does that mean I should issue this command, then get what is currently being broadcast for each channel? (that's a lot of web calls).
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#2
2015-11-30, 03:30 AM
Are you passing in the channel_id parameter to filter it for certain channels, or no channel_id to give listings for all channels?

Looking at the code, it has definitely been updated for these ATSC style major.minor channel numbers, so should contain listings for these.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#3
2015-11-30, 07:57 AM
sub Wrote:Are you passing in the channel_id parameter to filter it for certain channels, or no channel_id to give listings for all channels?

Looking at the code, it has definitely been updated for these ATSC style major.minor channel numbers, so should contain listings for these.


I'm doing that channel.listings.current call which seems to get all channels and what they are currently broadcasting. But I have a report from an atsc user that its't not getting the minor channel nubers.

In fact when I do it on mine I don't see a minor entry?

Code:
<channel id="7224" name="TV ONE" number="1">
<l>
<id>4353919</id>
<name>Criminal Minds</name>
<description>
Encore Screening: As the BAU zeroes in on the suspect of the ritualistic killings in Arizona, a bizarre connection within the UnSub’s family could lead them to finally nab the suspect.
</description>
<start>1448868600000</start>
<end>1448872200000</end>
<firstrun>true</firstrun>
</l>
<l>
<id>4353920</id>
<name>Castle</name>
<description>
As Castle and Alexis travel to London, their routine flight turns deadly when the plane’s Air Marshal is found murdered.
</description>
<start>1448872200000</start>
<end>1448875800000</end>
<firstrun>true</firstrun>
</l>
</channel>

Of course we don't have those here.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#4
2015-11-30, 05:41 PM
psycik Wrote:I'm doing that channel.listings.current call which seems to get all channels and what they are currently broadcasting.
Yep, I just wanted to know if you were passing the optional channel_id parameters. I guess not, or you'd have known about it.

Quote:But I have a report from an atsc user that its't not getting the minor channel nubers.

In fact when I do it on mine I don't see a minor entry?
I checked, and they're definitely being included. They're just part of the 'number' field. Are you maybe assuming this is a whole number. You should probably just be treating it as a string.
Code:
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<listings>
<channel id='8912' name='WCBSDT' number='2.1'>
<l>
   <id>8099902</id>
   <name>The Young and the Restless</name>
   <description>Phyllis seeks revenge; Lily plays a game with Joe; Adam&apos;s fate is set.</description>
   <start>1448904600000</start>
   <end>1448908200000</end>
   <firstrun>true</firstrun>
   <genre>Soap</genre>
</l>
<l>
   <id>8099903</id>
   <name>The Bold and the Beautiful</name>
   <description>Steffy overhears a private conversation between Ivy and Thomas; Liam doesn&apos;t understand Steffy&apos;s interest in Ivy and Wyatt&apos;s relationship.</description>
   <start>1448908200000</start>
   <end>1448910000000</end>
   <firstrun>true</firstrun>
   <genre>Soap</genre>
</l>
</channel>
<channel id='8914' name='WCBSDT2' number='2.2'>
<l>
   <id>8100381</id>
   <name>The Color of Change</name>
   <description>Former player/manager Buck O&apos;Neil and sportswriter Bryan Burwell discuss issues and hardships that members of baseball&apos;s Negro League encountered.</description>
   <start>1448902800000</start>
   <end>1448906400000</end>
   <genre>Baseball</genre>
</l>
<l>
   <id>8100382</id>
   <name>Through the Decades</name>
   <description>November 30: Looking back at when Michael Jackson released the album Thriller, oil giants Exxon and Mobil merged, President Reagan signed the Brady Bill and riots filled the streets of Seattle during the meeting of the World Trade Organization.</description>
   <start>1448906400000</start>
   <end>1448910000000</end>
   <genre>Documentary</genre>
</l>
...
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#5
2015-11-30, 06:19 PM
So from teh user with the problem I've got the result of channel.list. This seems good and has all the ids.
Code:
<channel>
      <id>7225</id>
      <name>WCBS-HD</name>
      <number>2</number>
      <minor>1</minor>
      <formatted-number>2.1</formatted-number>
      <type>0x1</type>
    </channel>
    <channel>
      <id>7226</id>
      <name>DECADES</name>
      <number>2</number>
      <minor>2</minor>
      <formatted-number>2.2</formatted-number>
      <type>0x1</type>
    </channel>

But the call actually made in the channel..the channel.listings.current for this guy doesn't seem to include it.

Code:
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<listings>
<channel id='7179' name='DECADES' number='2'>
<l>
   <id>1017412</id>
   <name>The Green Hornet</name>
   <description>May the Best Man Lose: An assassin disrupts Scanlon&apos;s campaign.</description>
   <start>1448685000000</start>
   <end>1448686800000</end>
</l>
<l>
   <id>1017413</id>
   <name>The Green Hornet</name>
   <description>The Hornet and the Firefly: An arsonist burns industrial buildings.</description>
   <start>1448686800000</start>
   <end>1448688600000</end>
</l>
</channel>

So this is before I've even done anything with it, these are the user making these calls in a browser and supplying me the resulting xml.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#6
2015-11-30, 06:30 PM
Maybe he is running an old verison?
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#7
2015-11-30, 07:54 PM
sub Wrote:Maybe he is running an old verison?

I'll find out.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#8
2015-11-30, 10:56 PM
psycik Wrote:I'll find out.

Yes apparently on 3.5.7
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,090
Threads: 957
Joined: May 2006
#9
2015-11-30, 11:08 PM
[quote=psycik]So from teh user with the problem I've got the result of channel.list. This seems good and has all the ids.
Code:
<channel>
      <id>7225</id>
      <id>7226</id>
    </channel>

But the call actually made in the channel..the channel.listings.current  for this guy doesn't seem to include it.

<listings>
<channel id='7179' name='DECADES' number='2'>

The channel ID's in your samples don't match

Martin
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#10
2015-11-30, 11:21 PM
mvallevand Wrote:[quote=psycik]So from teh user with the problem I've got the result of channel.list. This seems good and has all the ids.
Code:
<channel>
      <id>7225</id>
      <id>7226</id>
    </channel>

But the call actually made in the channel..the channel.listings.current  for this guy doesn't seem to include it.

<listings>
<channel id='7179' name='DECADES' number='2'>

The channel ID's in your samples don't match

Martin

Yeah you're right. No idea. I was just given the two xml files for the two method calls I got hime to make.
« 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 channel.stream.start mvallevand 2 1,435 2023-05-07, 09:40 PM
Last Post: mvallevand
  is there a service?method which returns listings for multiple channels? reven 16 7,245 2022-04-11, 04:30 PM
Last Post: mandai
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 2,435 2021-03-11, 03:59 PM
Last Post: mvallevand
  What is being sent when using /live?channel=3.1 scJohn 2 1,961 2020-01-30, 04:51 PM
Last Post: sub
  Web command to create recurring any channel mvallevand 2 2,648 2019-02-04, 03:09 PM
Last Post: mvallevand
  XMLTV Channel Number Option gdogg371 12 6,985 2018-07-18, 04:32 PM
Last Post: sub
  Channels List by Channel Group Name scJohn 1 2,813 2018-01-05, 10:45 PM
Last Post: mvallevand
  Channel List (native controller) psycik 2 3,150 2017-06-19, 09:14 AM
Last Post: psycik
  Channel/ChannelMapping whurlston 4 2,951 2014-04-14, 06:26 PM
Last Post: whurlston
  What causes a new tuner to be used services/live?channel= psycik 2 2,355 2014-02-04, 05:32 PM
Last Post: psycik

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

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

Linear Mode
Threaded Mode