]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add fanartImage to htsp dvrEntry messages.
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Wed, 26 Sep 2018 12:13:49 +0000 (13:13 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 26 Sep 2018 15:35:57 +0000 (17:35 +0200)
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.

src/htsp_server.c

index b82c8da4387cd4ca070d6e998901f6b5c3a0dd76..b1d3f207dca8846b9233abf039cf4436ad3c357e 100644 (file)
@@ -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);