From: E.Smith <31170571+azlm8t@users.noreply.github.com> Date: Wed, 26 Sep 2018 12:13:49 +0000 (+0100) Subject: Add fanartImage to htsp dvrEntry messages. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11ea2864ec08fdd6dd40b2363cc47ae252dd84a2;p=thirdparty%2Ftvheadend.git Add fanartImage to htsp dvrEntry messages. Currently this fanartImage is set by the user in recording post-processing. So, a "%U" format specifier gives the user the uuid of the recording and they can use api/idnode/{load,save} to add fanart/image artwork from appropriate sources. This fanart is then displayed in Kodi via pvr.hts. --- diff --git a/src/htsp_server.c b/src/htsp_server.c index b82c8da43..b1d3f207d 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -1045,6 +1045,10 @@ htsp_build_dvrentry(htsp_connection_t *htsp, dvr_entry_t *de, const char *method const char *image = dvr_entry_class_image_url_get(de); if(image && *image) htsmsg_add_str(out, "image", image); + /* htsmsg camelcase to be compatible with other names */ + image = de->de_fanart_image; + if(image && *image) + htsmsg_add_str(out, "fanartImage", image); if (de->de_copyright_year) htsmsg_add_u32(out, "copyrightYear", de->de_copyright_year);