mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46: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
|
@ -46,9 +46,7 @@ def serve_template(templatename, **kwargs):
|
|||
|
||||
_hplookup = TemplateLookup(directories=[template_dir])
|
||||
|
||||
# Get the server name
|
||||
pms_connect = pmsconnect.PmsConnect()
|
||||
server_name = pms_connect.get_server_friendly_name()
|
||||
server_name = plexpy.CONFIG.PMS_NAME
|
||||
|
||||
try:
|
||||
template = _hplookup.get_template(templatename)
|
||||
|
@ -75,7 +73,8 @@ class WebInterface(object):
|
|||
"home_stats_length": plexpy.CONFIG.HOME_STATS_LENGTH,
|
||||
"home_stats_cards": plexpy.CONFIG.HOME_STATS_CARDS,
|
||||
"home_library_cards": plexpy.CONFIG.HOME_LIBRARY_CARDS,
|
||||
"pms_identifier": plexpy.CONFIG.PMS_IDENTIFIER
|
||||
"pms_identifier": plexpy.CONFIG.PMS_IDENTIFIER,
|
||||
"pms_name": plexpy.CONFIG.PMS_NAME
|
||||
}
|
||||
return serve_template(templatename="index.html", title="Home", config=config)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue