]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
iptv_auto: Add support for m3u "channel-number" tag
authorMichael Marley <michael@michaelmarley.com>
Thu, 27 Oct 2022 21:48:46 +0000 (17:48 -0400)
committerFlole998 <Flole998@users.noreply.github.com>
Mon, 31 Oct 2022 21:43:29 +0000 (22:43 +0100)
SiliconDust recently added m3u playlist generation support to the
HDHomeRun products.  They use "channel-number" for the channel
number, so add support for that value to TVHeadend.  It is used as
a fallback only if the previously-supported "tvh-chnum" and
"tvg-chno" tags aren't present.  This should be particularly useful
for usage with ATSC 3.0 channels, as those aren't supported in the
libhdhomerun library that TVHeadend normally uses for HDHomeRun
devices.  Without this, the channel number for all channels
imported from the HDHomeRun m3u is "0".

src/input/mpegts/iptv/iptv_auto.c

index c88c3df9891d8568a9e7709597d248bb3a35189a..ea3c6e25f404d9fbe6c625d4ea5d93afa20e4a7d 100644 (file)
@@ -105,6 +105,7 @@ iptv_auto_network_process_m3u_item(iptv_network_t *in,
 
   epgid = htsmsg_get_str(item, "tvh-chnum");
   if (!epgid) epgid = htsmsg_get_str(item, "tvg-chno");
+  if (!epgid) epgid = htsmsg_get_str(item, "channel-number");
   chnum2 = epgid ? channel_get_number_from_str(epgid) : 0;
 
   muxprio = htsmsg_get_s32_or_default(item, "tvh-prio", -1);