]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
add new dvr lifetime options to htsp api 24
authorGlenn-1990 <g_christiaensen@msn.com>
Sun, 6 Dec 2015 13:49:53 +0000 (14:49 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 7 Dec 2015 08:12:25 +0000 (09:12 +0100)
src/htsp_server.c

index d61f15d1d5d0861d495c1a83831e76efecbbc783..714a01e29312637d45b23099b1a2e823a7b91861 100644 (file)
@@ -870,7 +870,7 @@ htsp_build_dvrentry(htsp_connection_t *htsp, dvr_entry_t *de, const char *method
   htsmsg_add_s64(out, "startExtra",  dvr_entry_get_extra_time_pre(de));
   htsmsg_add_s64(out, "stopExtra",   dvr_entry_get_extra_time_post(de));
 
-  if (htsp->htsp_version > 25)
+  if (htsp->htsp_version > 24)
     htsmsg_add_u32(out, "retention",   dvr_entry_get_retention_days(de));
   else
     htsmsg_add_u32(out, "retention",   dvr_entry_get_retention_days(de) == DVR_RET_ONREMOVE ?
@@ -975,7 +975,7 @@ htsp_build_autorecentry(htsp_connection_t *htsp, dvr_autorec_entry_t *dae, const
   htsmsg_add_u32(out, "maxDuration", dae->dae_maxduration);
   htsmsg_add_u32(out, "minDuration", dae->dae_minduration);
 
-  if (htsp->htsp_version > 25)
+  if (htsp->htsp_version > 24)
     htsmsg_add_u32(out, "retention",   dvr_autorec_get_retention_days(dae));
   else
     htsmsg_add_u32(out, "retention",   dvr_autorec_get_retention_days(dae) == DVR_RET_ONREMOVE ?
@@ -1034,7 +1034,7 @@ htsp_build_timerecentry(htsp_connection_t *htsp, dvr_timerec_entry_t *dte, const
   htsmsg_add_u32(out, "enabled",     dte->dte_enabled >= 1 ? 1 : 0);
   htsmsg_add_u32(out, "daysOfWeek",  dte->dte_weekdays);
 
-  if (htsp->htsp_version > 25)
+  if (htsp->htsp_version > 24)
     htsmsg_add_u32(out, "retention",   dvr_timerec_get_retention_days(dte));
   else
     htsmsg_add_u32(out, "retention",   dvr_timerec_get_retention_days(dte) == DVR_RET_ONREMOVE ?