]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
iptv: autonet - fix first import of lcn,logo,epgid
authorJaroslav Kysela <perex@perex.cz>
Wed, 28 Oct 2015 15:01:04 +0000 (16:01 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 28 Oct 2015 15:04:46 +0000 (16:04 +0100)
src/input/mpegts/iptv/iptv_auto.c

index cd0548e272adf4294aae9ed99e75a71b0f7f2610..656804a8665f267afe05656c9e4affab59521543 100644 (file)
@@ -107,7 +107,7 @@ iptv_auto_network_process_m3u_item(iptv_network_t *in,
   http_arg_t *ra1, *ra2, *ra2_next;
   htsbuf_queue_t q;
   size_t l = 0;
-  char url2[512], name2[128], *n, *x = NULL;
+  char url2[512], name2[128], buf[32], *n, *x = NULL;
 
   if (url == NULL ||
       (strncmp(url, "file://", 7) &&
@@ -219,6 +219,15 @@ iptv_auto_network_process_m3u_item(iptv_network_t *in,
     htsmsg_add_str(conf, "iptv_muxname", n);
   if (name)
     htsmsg_add_str(conf, "iptv_sname", name);
+  if (chnum) {
+    snprintf(buf, sizeof(buf), "%ld.%ld",
+             (long)(chnum / CHANNEL_SPLIT), (long)(chnum % CHANNEL_SPLIT));
+    htsmsg_add_str(conf, "channel_number", buf);
+  }
+  if (logo)
+    htsmsg_add_str(conf, "iptv_icon", logo);
+  if (epgid)
+    htsmsg_add_str(conf, "iptv_epgid", epgid);
   if (!in->in_scan_create)
     htsmsg_add_s32(conf, "scan_result", MM_SCAN_OK);
   im = iptv_mux_create0(in, NULL, conf);