From b2e3a4fa00b007e9936de106a8daacab4a438f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sun, 25 Nov 2007 15:23:49 +0000 Subject: [PATCH] add a HTML META tag for reloading page when next event transition occurs --- htmlui.c | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/htmlui.c b/htmlui.c index 6f5e08a5..16b064b1 100644 --- a/htmlui.c +++ b/htmlui.c @@ -99,7 +99,8 @@ pvrstatus_to_html(tv_pvr_status_t pvrstatus, const char **text, static void -html_header(tcp_queue_t *tq, const char *title, int javascript, int width) +html_header(tcp_queue_t *tq, const char *title, int javascript, int width, + int autorefresh) { char w[30]; @@ -116,6 +117,11 @@ html_header(tcp_queue_t *tq, const char *title, int javascript, int width) "\r\n", title); + if(autorefresh) + tcp_qprintf(tq, + "\r\n", + autorefresh); + tcp_qprintf(tq, "