Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add max recordings count
  • Loading branch information
Glenn-1990 authored and perexg committed Nov 5, 2015
1 parent 1b73e88 commit 7ff6985
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/htsp_server.c
Expand Up @@ -550,6 +550,8 @@ serierec_convert(htsp_connection_t *htsp, htsmsg_t *in, channel_t *ch, int autor
htsmsg_add_u32(conf, "fulltext", !retval ? u32 : 0); // 0 = off
if (!(retval = htsmsg_get_u32(in, "dupDetect", &u32)) || add)
htsmsg_add_u32(conf, "record", !retval ? u32 : DVR_AUTOREC_RECORD_ALL);
if (!(retval = htsmsg_get_u32(in, "maxCount", &u32)) || add)
htsmsg_add_u32(conf, "maxcount", !retval ? u32 : 0); // 0 = unlimited
if (!(retval = htsmsg_get_s64(in, "startExtra", &s64)) || add)
htsmsg_add_s64(conf, "start_extra", !retval ? (s64 < 0 ? 0 : s64) : 0); // 0 = dvr config
if (!(retval = htsmsg_get_s64(in, "stopExtra", &s64)) || add)
Expand Down Expand Up @@ -985,6 +987,7 @@ htsp_build_autorecentry(dvr_autorec_entry_t *dae, const char *method)
htsmsg_add_s64(out, "startExtra", dvr_autorec_get_extra_time_pre(dae));
htsmsg_add_s64(out, "stopExtra", dvr_autorec_get_extra_time_post(dae));
htsmsg_add_u32(out, "dupDetect", dae->dae_record);
htsmsg_add_u32(out, "maxCount", dae->dae_max_count);

if(dae->dae_title) {
htsmsg_add_str(out, "title", dae->dae_title);
Expand Down

0 comments on commit 7ff6985

Please sign in to comment.