From: Jaroslav Kysela Date: Wed, 1 Apr 2015 08:48:00 +0000 (+0200) Subject: htsp server: fix epg query (missing title filter), add fulltext flag X-Git-Tag: v4.1~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fabd01191db6d648c6ce3bfcce4227e6896e18ad;p=thirdparty%2Ftvheadend.git htsp server: fix epg query (missing title filter), add fulltext flag --- diff --git a/src/htsp_server.c b/src/htsp_server.c index 223bc182e..b99d44fd5 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -1238,6 +1238,10 @@ htsp_method_epgQuery(htsp_connection_t *htsp, htsmsg_t *in) return htsp_error("Missing argument 'query'"); memset(&eq, 0, sizeof(eq)); + + if(htsmsg_get_bool_or_default(in, "fulltext", 0)) + eq.fulltext = 1; + eq.stitle = strdup(query); /* Optional */ if(!(htsmsg_get_u32(in, "channelId", &u32))) {