Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
check flags
  • Loading branch information
Glenn-1990 authored and perexg committed Nov 5, 2015
1 parent b2f4b14 commit 968c4d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/htsp_server.c
Expand Up @@ -851,7 +851,7 @@ htsp_build_dvrentry(dvr_entry_t *de, const char *method, const char *lang)
int64_t fsize = -1;

htsmsg_add_u32(out, "id", idnode_get_short_uuid(&de->de_id));
htsmsg_add_u32(out, "enabled", de->de_enabled);
htsmsg_add_u32(out, "enabled", de->de_enabled >= 1 ? 1 : 0);
if (de->de_channel)
htsmsg_add_u32(out, "channel", channel_get_id(de->de_channel));

Expand Down Expand Up @@ -964,7 +964,7 @@ htsp_build_autorecentry(dvr_autorec_entry_t *dae, const char *method)
int tad;

htsmsg_add_str(out, "id", idnode_uuid_as_sstr(&dae->dae_id));
htsmsg_add_u32(out, "enabled", dae->dae_enabled);
htsmsg_add_u32(out, "enabled", dae->dae_enabled >= 1 ? 1 : 0);
htsmsg_add_u32(out, "maxDuration", dae->dae_maxduration);
htsmsg_add_u32(out, "minDuration", dae->dae_minduration);
htsmsg_add_u32(out, "retention", dvr_autorec_get_retention_days(dae));
Expand All @@ -991,7 +991,7 @@ htsp_build_autorecentry(dvr_autorec_entry_t *dae, const char *method)

if(dae->dae_title) {
htsmsg_add_str(out, "title", dae->dae_title);
htsmsg_add_u32(out, "fulltext", dae->dae_fulltext);
htsmsg_add_u32(out, "fulltext", dae->dae_fulltext >= 1 ? 1 : 0);
}
if(dae->dae_name)
htsmsg_add_str(out, "name", dae->dae_name);
Expand All @@ -1018,7 +1018,7 @@ htsp_build_timerecentry(dvr_timerec_entry_t *dte, const char *method)
htsmsg_t *out = htsmsg_create_map();

htsmsg_add_str(out, "id", idnode_uuid_as_sstr(&dte->dte_id));
htsmsg_add_u32(out, "enabled", dte->dte_enabled);
htsmsg_add_u32(out, "enabled", dte->dte_enabled >= 1 ? 1 : 0);
htsmsg_add_u32(out, "daysOfWeek", dte->dte_weekdays);
htsmsg_add_u32(out, "retention", dvr_timerec_get_retention_days(dte));
htsmsg_add_u32(out, "removal", dvr_timerec_get_removal_days(dte));
Expand Down

0 comments on commit 968c4d0

Please sign in to comment.