]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui status: add user-agent (client) column
authorJaroslav Kysela <perex@perex.cz>
Tue, 27 Nov 2018 16:15:43 +0000 (17:15 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 27 Nov 2018 16:15:43 +0000 (17:15 +0100)
src/subscriptions.c
src/webui/static/app/status.js

index 54daa2714531321558f6dd9d359cb1d0fdea055b..60284ed94c7923eb9b48a4987f7aba27450d6657 100644 (file)
@@ -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)
index 8e85646be70157e80ed03bbac36058a2acac00cd..57c9628bb4c127a9f9367252b3185c08914c8eb4 100644 (file)
@@ -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',