Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HTSP: show default language settings in the hello message
  • Loading branch information
perexg committed May 29, 2015
1 parent ec2dea3 commit 6c6a797
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/htsp_server.c
Expand Up @@ -18,6 +18,7 @@

#include "tvheadend.h"
#include "atomic.h"
#include "config.h"
#include "channels.h"
#include "subscriptions.h"
#include "tcp.h"
Expand Down Expand Up @@ -966,7 +967,7 @@ htsp_method_hello(htsp_connection_t *htsp, htsmsg_t *in)
{
htsmsg_t *r;
uint32_t v;
const char *name;
const char *name, *lang;

if(htsmsg_get_u32(in, "htspversion", &v))
return htsp_error("Missing argument 'htspversion'");
Expand All @@ -987,6 +988,9 @@ htsp_method_hello(htsp_connection_t *htsp, htsmsg_t *in)
htsmsg_add_bin(r, "challenge", htsp->htsp_challenge, 32);
if (tvheadend_webroot)
htsmsg_add_str(r, "webroot", tvheadend_webroot);
lang = config_get_language();
if (lang)
htsmsg_add_str(r, "language", lang);

/* Capabilities */
htsmsg_add_msg(r, "servercapability", tvheadend_capabilities_list(1));
Expand Down

0 comments on commit 6c6a797

Please sign in to comment.