mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Get server name as a scheduled task
This commit is contained in:
parent
7c8fb58600
commit
12056ac2ba
5 changed files with 15 additions and 21 deletions
|
@ -33,7 +33,7 @@
|
|||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="padded-header" id="library-statistics-header">
|
||||
<h3>Library Statistics</h3>
|
||||
<h3>Library Statistics <small>${config['pms_name']}</small></h3>
|
||||
</div>
|
||||
<div id="library-stats" class="library-platforms">
|
||||
<div class='text-muted'><i class="fa fa-refresh fa-spin"></i> Loading stats...</div>
|
||||
|
@ -98,19 +98,6 @@
|
|||
});
|
||||
}
|
||||
|
||||
function getLibraryStatsHeader() {
|
||||
$.ajax({
|
||||
url: 'get_server_friendly_name',
|
||||
cache: false,
|
||||
async: true,
|
||||
data: { },
|
||||
complete: function (xhr, status) {
|
||||
server_name = xhr.responseText;
|
||||
$('#library-statistics-header h3').append(' <small>' + server_name + '</small>')
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getLibraryStats() {
|
||||
$.ajax({
|
||||
url: 'library_stats',
|
||||
|
@ -162,7 +149,6 @@
|
|||
});
|
||||
|
||||
getHomeStats();
|
||||
getLibraryStatsHeader();
|
||||
getLibraryStats();
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue