From: Jaroslav Kysela Date: Wed, 30 Jul 2014 10:23:00 +0000 (+0200) Subject: webui: Stream directly for TVHeadend/ http client, too X-Git-Tag: v4.1~1734 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3ef0941286273a199799296cfc5af959e668cb7;p=thirdparty%2Ftvheadend.git webui: Stream directly for TVHeadend/ http client, too --- diff --git a/src/webui/webui.c b/src/webui/webui.c index 8d91a21fd..91b3ec424 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -1016,12 +1016,14 @@ static char * page_play_path_modify(http_connection_t *hc, const char *path, int *cut) { /* - * For curl and wget do not set the playlist, stream directly + * For curl, wget and TVHeadend do not send the playlist, stream directly */ const char *agent = http_arg_get(&hc->hc_args, "User-Agent"); if (strncasecmp(agent, "curl/", 5) == 0 || strncasecmp(agent, "wget/", 5) == 0) return strdup(path + 5); + if (strncasecmp(agent, "TVHeadend/", 10) == 0) + return strdup(path + 10); return NULL; }