mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Disable IP logging checkbox depending on server version
This commit is contained in:
parent
de86516a0a
commit
eab6365af9
2 changed files with 63 additions and 25 deletions
|
@ -1943,7 +1943,7 @@ class WebInterface(object):
|
|||
@cherrypy.expose
|
||||
@addtoapi()
|
||||
def get_servers_info(self, **kwargs):
|
||||
""" Graps info about the server
|
||||
""" Grabs list of info about the servers
|
||||
|
||||
Returns:
|
||||
json:
|
||||
|
@ -1956,8 +1956,6 @@ class WebInterface(object):
|
|||
}
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
"""
|
||||
|
||||
pms_connect = pmsconnect.PmsConnect()
|
||||
|
@ -1969,6 +1967,30 @@ class WebInterface(object):
|
|||
else:
|
||||
logger.warn(u"Unable to retrieve data for get_servers_info.")
|
||||
|
||||
@cherrypy.expose
|
||||
@addtoapi()
|
||||
def get_server_identity(self, **kwargs):
|
||||
""" Grabs info about the local server
|
||||
|
||||
Returns:
|
||||
json:
|
||||
```
|
||||
[{"machine_identifier": "1234",
|
||||
"version": "0.9.15.x.xxx-xxxxxxx"
|
||||
}
|
||||
]
|
||||
```
|
||||
"""
|
||||
|
||||
pms_connect = pmsconnect.PmsConnect()
|
||||
result = pms_connect.get_server_identity()
|
||||
|
||||
if result:
|
||||
cherrypy.response.headers['Content-type'] = 'application/json'
|
||||
return json.dumps(result)
|
||||
else:
|
||||
logger.warn(u"Unable to retrieve data for get_server_identity.")
|
||||
|
||||
@cherrypy.expose
|
||||
@addtoapi()
|
||||
def get_server_friendly_name(self, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue