mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -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
3
API.md
3
API.md
|
@ -2905,7 +2905,8 @@ Optional parameters:
|
||||||
Returns:
|
Returns:
|
||||||
json:
|
json:
|
||||||
{"pms_name": "Winterfell-Server",
|
{"pms_name": "Winterfell-Server",
|
||||||
"server_id": "ds48g4r354a8v9byrrtr697g3g79w"
|
"server_id": "ds48g4r354a8v9byrrtr697g3g79w",
|
||||||
|
"tautulli_version": "v2.5.6"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@ import xmltodict
|
||||||
|
|
||||||
import plexpy
|
import plexpy
|
||||||
if plexpy.PYTHON2:
|
if plexpy.PYTHON2:
|
||||||
|
import common
|
||||||
import config
|
import config
|
||||||
import database
|
import database
|
||||||
import helpers
|
import helpers
|
||||||
|
@ -49,6 +50,7 @@ if plexpy.PYTHON2:
|
||||||
import newsletters
|
import newsletters
|
||||||
import users
|
import users
|
||||||
else:
|
else:
|
||||||
|
from plexpy import common
|
||||||
from plexpy import config
|
from plexpy import config
|
||||||
from plexpy import database
|
from plexpy import database
|
||||||
from plexpy import helpers
|
from plexpy import helpers
|
||||||
|
@ -409,7 +411,8 @@ class API2(object):
|
||||||
Returns:
|
Returns:
|
||||||
json:
|
json:
|
||||||
{"pms_name": "Winterfell-Server",
|
{"pms_name": "Winterfell-Server",
|
||||||
"server_id": "ds48g4r354a8v9byrrtr697g3g79w"
|
"server_id": "ds48g4r354a8v9byrrtr697g3g79w",
|
||||||
|
"tautulli_version": "v2.5.6"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
|
@ -441,7 +444,8 @@ class API2(object):
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
"pms_name": plexpy.CONFIG.PMS_NAME,
|
"pms_name": plexpy.CONFIG.PMS_NAME,
|
||||||
"server_id": plexpy.CONFIG.PMS_UUID
|
"server_id": plexpy.CONFIG.PMS_UUID,
|
||||||
|
"tautulli_version": common.RELEASE
|
||||||
}
|
}
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue