NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
1 2 3 4 5 … 113 Next »
Channel numbering from IPTV sources

 
  • 0 Vote(s) - 0 Average
Channel numbering from IPTV sources
clemon79
Offline

Junior Member

Posts: 39
Threads: 6
Joined: Mar 2016
#1
2026-07-31, 06:53 AM (This post was last modified: 2026-07-31, 06:54 AM by clemon79.)
I have no logs to provide because this is a question about NextPVR behavior, and not any actual problem I'm having.

In working with this I am finding that when setting up an IPTV import via Xtream credentials, that Next does not honor the channel numbering in the Xtream feed (that I know exists, because I made the feed), but rather finds the highest number currently existing, adds 1, and numbers sequentially from there.

Is this intentional behavior?

Thanks!

-- Chris
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 56,690
Threads: 996
Joined: May 2006
#2
2026-07-31, 12:17 PM (This post was last modified: 2026-07-31, 01:14 PM by mvallevand.)
Yes but with an asterisk. There is no defined channel number field in the API but if JSON num and epg_channel_id fields are the same number it will use that as shown here https://forums.nextpvr.com/showthread.ph...#pid605656

Martin
clemon79
Offline

Junior Member

Posts: 39
Threads: 6
Joined: Mar 2016
#3
2026-07-31, 06:19 PM
(2026-07-31, 12:17 PM)mvallevand Wrote: Yes but with an asterisk. There is no defined channel number field in the API but if JSON num and epg_channel_id fields are the same number it will use that as shown here https://forums.nextpvr.com/showthread.ph...#pid605656

Nothing defined, but many IPTV apps pull from
Code:
num
, do they not?

So given this example of the JSON from one of my playlist entries, you would NOT expect it to honor a channel number, yes?

Code:
{   "num": 466,   "name": "Channel 4 FHD",   "stream_type": "live",   "stream_id": 94214,   "stream_icon": "https://cdn.iptvboss.pro/logos/UK/Channel4.uk.png",   "epg_channel_id": "369842",   "added": "1785287169",   "category_id": "3",   "category_ids": [     3   ],   "tv_archive": 1,   "tv_archive_duration": 3,   "custom_sid": "",   "thumbnail": "https://cdn.iptvboss.pro/logos/UK/Channel4.uk.png",   "direct_source": "" }
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 56,690
Threads: 996
Joined: May 2006
#4
2026-07-31, 06:30 PM (This post was last modified: 2026-07-31, 06:32 PM by mvallevand.)
Correct they aren't the same.

I have no idea about other apps, I know that it is just a database id. and each provider has a different number. There is no reason to think 466 is a good number for Channel 4.

Martin
clemon79
Offline

Junior Member

Posts: 39
Threads: 6
Joined: Mar 2016
#5
2026-07-31, 07:17 PM (This post was last modified: 2026-07-31, 07:26 PM by clemon79.)
(2026-07-31, 06:30 PM)mvallevand Wrote: Correct they aren't the same.

I have no idea about other apps, I know that it is just a database id. and each provider has a different number.  There is no reason to think 466 is a good number for Channel 4.

Well because I intentionally SET that, that's why! Big Grin

Seriously, though, I understand; since XTream is such a loose standard (and honestly, calling it a standard is an insult to standards) mostly I wanted to be sure the software was working as you intended even though I might not agree with (but make no mistake: can live with) the output.

Would you consider adding some kind of setting to the Xtream import flow? Something like: Channel number source: num / epg_channel_id / Custom Field (let the user tell you what field to use) / Automatic, defaulting to "automatic" which is the current behavior? That way most folks don't see any change but people curating their own custom IPTV feeds have options.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 56,690
Threads: 996
Joined: May 2006
#6
2026-07-31, 10:24 PM
It is up to sub, it is not something I see having any particular value, NextPVR does let you manually renumber channels which is the traditional PVR approach.

That being since you have the custom JSON already it would be faster you you to pass the JSON and npvr.db3 to Claude or ChatGPT and it would be trivial to have them write a python script that does what you want.

Martin
clemon79
Offline

Junior Member

Posts: 39
Threads: 6
Joined: Mar 2016
#7
2026-07-31, 10:30 PM
(2026-07-31, 10:24 PM)mvallevand Wrote: It is up to sub, it is not something I see having any particular value,  NextPVR does let you manually renumber channels which is the traditional PVR approach.

That being since you have the custom JSON already it would be faster you you to pass the JSON and npvr.db3 to Claude or ChatGPT and it would  be trivial to have them write a python script that does what you want.

Martin

Fair. Also untenable when dealing with a list of 3000 channels. Smile True, I could do that, but I would have to do that every time I update the list, I think, wouldn't I? Plus I think it makes EPG matching an issue in my specific case.

No matter. The question going in was really "is this behaving how it was intended to behave?" And now that I know the answer is "yes", I can go on with my life. Once I find something to watch. It may be a minute. Smile
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 56,690
Threads: 996
Joined: May 2006
#8
2026-07-31, 10:37 PM
Having 3000 dynamic live TV changes is crazy for PVR too, which is ultimately the issue no way the channel numbers are meaningful.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  IPTV User-Agent issue: 404 and NullReferenceException mellman 4 94 Yesterday, 01:05 PM
Last Post: mvallevand
  IPTV Import Using XC Issue Metroid 8 547 2026-06-25, 05:26 PM
Last Post: Metroid
  Failing to load IPTV channels rafael3 11 875 2026-06-21, 10:14 PM
Last Post: mvallevand
  Failing to load channel list jdmurphy42 9 901 2026-06-11, 07:12 PM
Last Post: jdmurphy42
  recording one channel causes serviceto crash - sharkbite 7 595 2026-05-29, 01:20 AM
Last Post: mvallevand
  is there a way to force iptv input streams through ffmpeg? sharkbite 5 529 2026-05-25, 02:07 AM
Last Post: mvallevand
  Showing duplicate of every channel lately merkyone 2 472 2026-04-29, 01:44 PM
Last Post: merkyone
Question Channel Listings Stop at 1:00 AM Every night? membball84 2 568 2026-03-11, 03:14 AM
Last Post: sub
  Visx Channel Scan Results RedDevilJoe 1 453 2026-03-04, 12:00 PM
Last Post: mvallevand
  XMLTV subscription not loading channel maps prariedogn99 8 992 2026-03-01, 04:11 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode