imagecache: fix problem with imagecaching in the UI display
This commit is contained in:
parent
06f83663c1
commit
92d0450cca
2 changed files with 2 additions and 1 deletions
|
@ -52,6 +52,7 @@ int imagecache_open ( uint32_t id );
|
|||
uint32_t _id = imagecache_get_id(_url);\
|
||||
if (_id) {\
|
||||
snprintf(_tmp, sizeof(_tmp), _fmt, _id);\
|
||||
htsmsg_add_str(_msg, _fld, _tmp);\
|
||||
} else {\
|
||||
htsmsg_add_str(_msg, _fld, _url);\
|
||||
}\
|
||||
|
|
|
@ -423,7 +423,7 @@ build_record_channel ( channel_t *ch )
|
|||
htsmsg_add_u32(c, "chid", ch->ch_id);
|
||||
|
||||
if(ch->ch_icon != NULL)
|
||||
htsmsg_add_str(c, "ch_icon", ch->ch_icon);
|
||||
htsmsg_add_imageurl(c, "ch_icon", "imagecache/%d", ch->ch_icon);
|
||||
|
||||
buf[0] = 0;
|
||||
LIST_FOREACH(ctm, &ch->ch_ctms, ctm_channel_link) {
|
||||
|
|
Loading…
Add table
Reference in a new issue