Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
htsp: initialize creator for network accounts without usernames (IP a…
…ddresses) for autorec/timerec, too
  • Loading branch information
perexg committed May 21, 2015
1 parent ccbdd82 commit 86ef485
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/htsp_server.c
Expand Up @@ -1697,6 +1697,8 @@ htsp_method_addAutorecEntry(htsp_connection_t *htsp, htsmsg_t *in)
if(htsmsg_get_s64(in, "stopExtra", &stop_extra))
stop_extra = 0; // 0 = dvr config
creator = htsp->htsp_username;
if (creator == NULL || *creator == '\0')
creator = htsp->htsp_granted_access->aa_representative;
if (!(comment = htsmsg_get_str(in, "comment")))
comment = "";
if (!(name = htsmsg_get_str(in, "name")))
Expand Down Expand Up @@ -1796,6 +1798,8 @@ htsp_method_addTimerecEntry(htsp_connection_t *htsp, htsmsg_t *in)
enabled = 1;

creator = htsp->htsp_username;
if (creator == NULL || *creator == '\0')
creator = htsp->htsp_granted_access->aa_representative;
if (!(comment = htsmsg_get_str(in, "comment")))
comment = "";
if (!(name = htsmsg_get_str(in, "name")))
Expand Down

0 comments on commit 86ef485

Please sign in to comment.