]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add extra start / stop time information to status.xml page (redmine ticket #351)
authorJörg Dembski <gymlet@gmx.de>
Thu, 13 Jan 2011 08:40:04 +0000 (09:40 +0100)
committerJörg Dembski <gymlet@gmx.de>
Thu, 13 Jan 2011 08:40:04 +0000 (09:40 +0100)
src/webui/simpleui.c

index 197825af881930ffa34d1eafb6f415dec26612cc..1c791092c9adc3bfbd04c69bbc5dd2974e92748c 100644 (file)
@@ -383,7 +383,7 @@ page_status(http_connection_t *hc,
 
     if (DVR_SCHEDULED == de->de_sched_state)
     {
-      timelefttemp = (int) (de->de_start - now) / 60; // output minutes
+      timelefttemp = (int) ((de->de_start - now) / 60) - de->de_start_extra; // output minutes
       if (timelefttemp < timeleft)
         timeleft = timelefttemp;
     }
@@ -398,19 +398,23 @@ page_status(http_connection_t *hc,
                     "<date>%02d/%02d/%02d</date>"
                     "<time>%02d:%02d</time>"
                     "<unixtime>%d</unixtime>"
+                     "<extra_start>%d</extra_start>"
                     "</start>"
                     "<stop>"
                     "<date>%02d/%02d/%02d</date>"
                     "<time>%02d:%02d</time>"
                     "<unixtime>%d</unixtime>"
+                     "<extra_stop>%d</extra_stop>"
                     "</stop>"
                     "<title>%s</title>",
                     a.tm_year + 1900, a.tm_mon, a.tm_mday, 
                     a.tm_hour, a.tm_min, 
                     de->de_start, 
+                     de->de_start_extra,
                     b.tm_year+1900, b.tm_mon, b.tm_mday, 
                     b.tm_hour, b.tm_min, 
                     de->de_stop, 
+                     de->de_stop_extra,
                     de->de_title);
 
       rstatus = val2str(de->de_sched_state, recstatustxt);