Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: Stream directly for TVHeadend/ http client, too
  • Loading branch information
perexg committed Jul 30, 2014
1 parent edbc077 commit b3ef094
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webui/webui.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit b3ef094

Please sign in to comment.