ui: fix previous mod that broken channel configuration editing
I made the change so that /channels returned the imagecache icon while I was testing some other UI code. Unfortunately that breaks channel editing. So I've added a second (possibly confusingly named) field.
This commit is contained in:
parent
0fab063340
commit
f44baad54c
1 changed files with 4 additions and 2 deletions
|
@ -422,8 +422,10 @@ build_record_channel ( channel_t *ch )
|
|||
htsmsg_add_str(c, "name", ch->ch_name);
|
||||
htsmsg_add_u32(c, "chid", ch->ch_id);
|
||||
|
||||
if(ch->ch_icon != NULL)
|
||||
htsmsg_add_imageurl(c, "ch_icon", "imagecache/%d", ch->ch_icon);
|
||||
if(ch->ch_icon != NULL) {
|
||||
htsmsg_add_imageurl(c, "chicon", "imagecache/%d", ch->ch_icon);
|
||||
htsmsg_add_str(c, "ch_icon", ch->ch_icon);
|
||||
}
|
||||
|
||||
buf[0] = 0;
|
||||
LIST_FOREACH(ctm, &ch->ch_ctms, ctm_channel_link) {
|
||||
|
|
Loading…
Add table
Reference in a new issue