Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HTSP: Fix the files/path field for dvrentry, fixes #2894
  • Loading branch information
perexg committed Jun 2, 2015
1 parent 5555bc6 commit c90fb41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/htsp_server.c
Expand Up @@ -705,9 +705,8 @@ htsp_build_dvrentry(dvr_entry_t *de, const char *method, const char *lang)
last = NULL;
if (!htsmsg_is_empty(de->de_files) && de->de_config) {
l = htsmsg_create_list();
htsmsg_add_msg(out, "files", l);
HTSMSG_FOREACH(f, de->de_files) {
m = htsmsg_field_get_list(f);
m = htsmsg_field_get_map(f);
if (m == NULL) continue;
s = last = htsmsg_get_str(m, "filename");
if (s && (p = tvh_strbegins(s, de->de_config->dvr_storage)) != NULL) {
Expand All @@ -716,6 +715,7 @@ htsp_build_dvrentry(dvr_entry_t *de, const char *method, const char *lang)
htsmsg_add_msg(l, NULL, e);
}
}
htsmsg_add_msg(out, "files", l);
}

if(last && de->de_config)
Expand Down

0 comments on commit c90fb41

Please sign in to comment.