]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP server: allow to disable X_SATIPM3U tag, fixes #4225
authorJaroslav Kysela <perex@perex.cz>
Thu, 16 Feb 2017 08:14:10 +0000 (09:14 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 16 Feb 2017 08:14:10 +0000 (09:14 +0100)
src/satip/server.c
src/satip/server.h

index ecde43e1a2eca0d43b4a25156cfe9e878a7c3925..e0bf95c8a940b72037f14e233deaaf4a1b3a6828 100644 (file)
@@ -106,7 +106,7 @@ satip_server_http_xml(http_connection_t *hc)
 </iconList>\n\
 <presentationURL>http://%s:%d</presentationURL>\n\
 <satip:X_SATIPCAP xmlns:satip=\"urn:ses-com:satip\">%s</satip:X_SATIPCAP>\n\
-<satip:X_SATIPM3U xmlns:satip=\"urn:ses-com:satip\">/playlist/satip/channels</satip:X_SATIPM3U>\n\
+%s\
 </device>\n\
 </root>\n"
 
@@ -195,7 +195,9 @@ satip_server_http_xml(http_connection_t *hc)
            http_server_ip, http_server_port,
            http_server_ip, http_server_port,
            http_server_ip, http_server_port,
-           devicelist ?: "");
+           devicelist ?: "",
+           satip_server_conf.satip_nom3u ? "" :
+             "<satip:X_SATIPM3U xmlns:satip=\"urn:ses-com:satip\">/playlist/satip/channels</satip:X_SATIPM3U>\n");
 
   free(devicelist);
 
@@ -672,6 +674,15 @@ const idclass_t satip_server_class = {
       .opts   = PO_EXPERT,
       .group  = 1,
     },
+    {
+      .type   = PT_BOOL,
+      .id     = "satip_nom3u",
+      .name   = N_("Disable X_SATIPM3U tag"),
+      .desc   = N_("Do not send X_SATIPM3U information in the XML description to clients."),
+      .off    = offsetof(struct satip_server_conf, satip_nom3u),
+      .opts   = PO_EXPERT,
+      .group  = 1,
+    },
     {
       .type   = PT_INT,
       .id     = "satip_dvbs",
index 3955156eea8bb11256a386928a847621b79d6f51..9aa9ebdf869f7f9ba1ee073adfd35eb2e561182d 100644 (file)
@@ -46,6 +46,7 @@ struct satip_server_conf {
   int satip_descramble;
   int satip_rewrite_pmt;
   int satip_muxcnf;
+  int satip_nom3u;
   int satip_dvbs;
   int satip_dvbs2;
   int satip_dvbt;