Skip to content

Commit

Permalink
htsp: expose duplicate state for dvr entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksooo authored and perexg committed Jul 1, 2018
1 parent 0ba0896 commit 30f9f7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/htsp_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

static void *htsp_server, *htsp_server_2;

#define HTSP_PROTO_VERSION 32
#define HTSP_PROTO_VERSION 33

#define HTSP_ASYNC_OFF 0x00
#define HTSP_ASYNC_ON 0x01
Expand Down Expand Up @@ -1107,6 +1107,9 @@ htsp_build_dvrentry(htsp_connection_t *htsp, dvr_entry_t *de, const char *method
break;
}

if (dvr_entry_is_upcoming(de))
htsmsg_add_u32(out, "duplicate", dvr_entry_is_upcoming_nodup(de) ? 0 : 1);

htsmsg_add_str(out, "state", s);
if(error)
htsmsg_add_str(out, "error", error);
Expand Down

0 comments on commit 30f9f7f

Please sign in to comment.