profile_class_get_title ( idnode_t *in, const char *lang )
{
profile_t *pro = (profile_t *)in;
- static char buf[32];
if (pro->pro_name && pro->pro_name[0])
return pro->pro_name;
- snprintf(buf, sizeof(buf), "%s", idclass_get_caption(in->in_class, lang));
- return buf;
+ snprintf(prop_sbuf, sizeof(prop_sbuf), "%s", idclass_get_caption(in->in_class, lang));
+ return prop_sbuf;
}
static void
{
htsmsg_t *m = htsmsg_create_map();
descramble_info_t *di;
+ profile_t *pro;
char buf[256];
htsmsg_add_u32(m, "id", s->ths_id);
htsmsg_add_str(m, "descramble", buf);
}
+ if (s->ths_prch != NULL) {
+ pro = s->ths_prch->prch_pro;
+ if (pro)
+ htsmsg_add_str(m, "profile", idnode_get_title(&pro->pro_id, lang));
+ }
+
} else if(s->ths_dvrfile != NULL)
htsmsg_add_str(m, "service", s->ths_dvrfile ?: "");
r.data.service = m.service;
r.data.state = m.state;
if (m.descramble) r.data.descramble = m.descramble;
+ if (m.profile) r.data.profile = m.profile;
r.data.errors = m.errors;
r.data['in'] = m['in'];
r.data.out = m.out;
{ name: 'title' },
{ name: 'channel' },
{ name: 'service' },
+ { name: 'profile' },
{ name: 'state' },
{ name: 'descramble' },
{ name: 'errors' },
header: _("Service"),
dataIndex: 'service'
},
+ {
+ width: 50,
+ id: 'profile',
+ header: _("Profile"),
+ dataIndex: 'profile'
+ },
{
width: 50,
id: 'start',