Project

General

Profile

Feature #5079

tvg-chno not working as input for m3u file.

Added by Stewart Finlay over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
IPTV
Target version:
-
Start date:
2018-04-18
Due date:
% Done:

0%

Estimated time:

Description

I know there was some discussion that a user requested to have m3u output which included the channel numbers in Feature #5011
The issue is here: https://tvheadend.org/issues/5011

i.e. tvg-chno=<tvh channel number> is now able to be exported in m3u from tvh.

But can you also do this feature the other way around. i.e. that TVH accepts tvg-chno from m3u file ?
I have configured all my channels in an online tool that incorporates my epg, and setup the channel numbers in order, but TVH seems to simply ignore them. I have played with all the settings to see if i could get it to import this but to no avail.

Thanks

History

#1

Updated by Jaroslav Kysela over 6 years ago

The code is there in src/input/mpegts/iptv/iptv_auto.c, I don't see the problem:

  epgid = htsmsg_get_str(item, "tvh-chnum");
  if (!epgid) epgid = htsmsg_get_str(item, "tvg-chno");
  chnum2 = epgid ? channel_get_number_from_str(epgid) : 0;

  muxprio = htsmsg_get_s32_or_default(item, "tvh-prio", -1);
  smuxprio = htsmsg_get_s32_or_default(item, "tvh-sprio", -1);

  if (chnum2 > 0) {
    chnum += chnum2;
  } else if (chnum) {
    if (chnum % CHANNEL_SPLIT)
      chnum += *total;
    else
      chnum += (int64_t)*total * CHANNEL_SPLIT;
  }
#2

Updated by Stewart Finlay over 6 years ago

Jaroslav Kysela wrote:

The code is there in src/input/mpegts/iptv/iptv_auto.c, I don't see the problem:

[...]

Hmmmm, I'm not sure why it doesn't accept it as input in that case. I tried many times (with various settings) to import an m3u file with the tvg-chno but doesn't accept it.All channels always come through as " 0 ".
Do you perhaps have any insight as to why ? Or is it simply a bug ?

Best Regards

Also available in: Atom PDF