mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 17:52:59 -07:00
Return Tautulli version in register device API
This commit is contained in:
parent
276ea4dd98
commit
bee3361ace
2 changed files with 8 additions and 3 deletions
|
@ -37,6 +37,7 @@ import xmltodict
|
|||
|
||||
import plexpy
|
||||
if plexpy.PYTHON2:
|
||||
import common
|
||||
import config
|
||||
import database
|
||||
import helpers
|
||||
|
@ -49,6 +50,7 @@ if plexpy.PYTHON2:
|
|||
import newsletters
|
||||
import users
|
||||
else:
|
||||
from plexpy import common
|
||||
from plexpy import config
|
||||
from plexpy import database
|
||||
from plexpy import helpers
|
||||
|
@ -409,7 +411,8 @@ class API2(object):
|
|||
Returns:
|
||||
json:
|
||||
{"pms_name": "Winterfell-Server",
|
||||
"server_id": "ds48g4r354a8v9byrrtr697g3g79w"
|
||||
"server_id": "ds48g4r354a8v9byrrtr697g3g79w",
|
||||
"tautulli_version": "v2.5.6"
|
||||
}
|
||||
```
|
||||
"""
|
||||
|
@ -441,7 +444,8 @@ class API2(object):
|
|||
|
||||
data = {
|
||||
"pms_name": plexpy.CONFIG.PMS_NAME,
|
||||
"server_id": plexpy.CONFIG.PMS_UUID
|
||||
"server_id": plexpy.CONFIG.PMS_UUID,
|
||||
"tautulli_version": common.RELEASE
|
||||
}
|
||||
|
||||
return data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue