]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
imagecache: fix problem with imagecaching in the UI display
authorAdam Sutton <dev@adamsutton.me.uk>
Wed, 20 Feb 2013 11:55:13 +0000 (11:55 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Wed, 20 Feb 2013 11:55:13 +0000 (11:55 +0000)
src/imagecache.h
src/webui/extjs.c

index c96b3186836e8a9ce1c35d3848c8e56dce62ef6a..225d717e68be4c69baa9ac8e6edad392431f4bd2 100644 (file)
@@ -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);\
     }\
index 45ecfed10c70334095a3ff67bfcc354be5f2a73b..55c30a288d02c27c0be68cdf0a57c85a58239e37 100644 (file)
@@ -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) {