]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
xmltv export: use summary for <desc/> tag when description is empty
authorJaroslav Kysela <perex@perex.cz>
Fri, 9 Feb 2018 09:57:12 +0000 (10:57 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 9 Feb 2018 09:59:10 +0000 (10:59 +0100)
src/webui/xmltv.c

index d3281a0dc14f695082b9bdbe0a72e21c88c736be..5c45ee8a62ff236e50b468600431dbd57ab00c2c 100644 (file)
@@ -114,6 +114,12 @@ http_xmltv_programme_one(htsbuf_queue_t *hq, const char *hostpath,
       htsbuf_append_and_escape_xml(hq, lse->str);
       htsbuf_append_str(hq, "</desc>\n");
     }
+  else if (ebc->summary)
+    RB_FOREACH(lse, ebc->summary, link) {
+      htsbuf_qprintf(hq, "  <desc lang=\"%s\">", lse->lang);
+      htsbuf_append_and_escape_xml(hq, lse->str);
+      htsbuf_append_str(hq, "</desc>\n");
+    }
   htsbuf_append_str(hq, "</programme>\n");
 }