From: Jaroslav Kysela Date: Tue, 27 Nov 2018 16:15:43 +0000 (+0100) Subject: webui status: add user-agent (client) column X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7b9ef8b8608b2c915d90d860a421221488f620e;p=thirdparty%2Ftvheadend.git webui status: add user-agent (client) column --- diff --git a/src/subscriptions.c b/src/subscriptions.c index 54daa2714..60284ed94 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -1039,8 +1039,9 @@ subscription_create_msg(th_subscription_t *s, const char *lang) htsmsg_add_str(m, "username", s->ths_username); if (s->ths_client != NULL) - htsmsg_add_str(m, "title", s->ths_client); - else if (s->ths_title != NULL) + htsmsg_add_str(m, "client", s->ths_client); + + if (s->ths_title != NULL) htsmsg_add_str(m, "title", s->ths_title); if (s->ths_channel != NULL) diff --git a/src/webui/static/app/status.js b/src/webui/static/app/status.js index 8e85646be..57c9628bb 100644 --- a/src/webui/static/app/status.js +++ b/src/webui/static/app/status.js @@ -46,6 +46,7 @@ tvheadend.status_subs = function(panel, index) { name: 'hostname', sortType: stypei }, { name: 'username', sortType: stype }, { name: 'title', sortType: stype }, + { name: 'client', sortType: stype }, { name: 'channel', sortType: stype }, { name: 'service', sortType: stype }, { name: 'profile', sortType: stype }, @@ -105,10 +106,17 @@ tvheadend.status_subs = function(panel, index) { width: 80, id: 'title', - header: _("Title"), + header: _("Title0"), dataIndex: 'title', sortable: true }, + { + width: 80, + id: 'client', + header: _("Client / User agent"), + dataIndex: 'client', + sortable: true + }, { width: 50, id: 'channel',