From 898ed26402725923bc38e5f82991121356850d76 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Fri, 9 Nov 2018 21:16:47 +0100 Subject: [PATCH] Adjust XMLTV output to try to make it validate using tv_validate_file. The tag ordering and some attributes had to be adjusted. Note, this change is not tested, as I lack a test setup for running the code. This should fix issue #103. --- fkbeta/templates/agenda/xmltv.xml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/fkbeta/templates/agenda/xmltv.xml b/fkbeta/templates/agenda/xmltv.xml index 9349b45c..43667afd 100644 --- a/fkbeta/templates/agenda/xmltv.xml +++ b/fkbeta/templates/agenda/xmltv.xml @@ -1,23 +1,22 @@ - {{ site_url }} {% for channel_display_name in channel_display_names %} {{ channel_display_name }} {% endfor %} + {{ site_url }} {% for program in events %} + channel="{{ channel_id }}" + start="{{ program.starttime|date:'YmdHis O' }}"> {% if program.video %} {{ program.video.name }} - + {{ program.video.header }} {{ site_url }}{{ program.video.get_absolute_url }} - {{ program.video.duration.seconds }} + {{ program.video.duration.seconds }} {% else %} {{ program.default_name }} - {{ program.duration.seconds }} + {{ program.duration.seconds }} {% endif %} {% endfor %}