mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Add all Plex server and Tautulli info to register device response
This commit is contained in:
parent
82d9719eee
commit
5a14b5bc35
2 changed files with 24 additions and 5 deletions
|
@ -2401,3 +2401,19 @@ def check_folder_writable(folder, fallback, name):
|
|||
return folder, False
|
||||
|
||||
return folder, True
|
||||
|
||||
|
||||
def get_tautulli_info():
|
||||
tautulli = {
|
||||
'tautulli_install_type': INSTALL_TYPE,
|
||||
'tautulli_version': common.RELEASE,
|
||||
'tautulli_branch': CONFIG.GIT_BRANCH,
|
||||
'tautulli_commit': CURRENT_VERSION,
|
||||
'tautulli_platform':common.PLATFORM,
|
||||
'tautulli_platform_release': common.PLATFORM_RELEASE,
|
||||
'tautulli_platform_version': common.PLATFORM_VERSION,
|
||||
'tautulli_platform_linux_distro': common.PLATFORM_LINUX_DISTRO,
|
||||
'tautulli_platform_device_name': common.PLATFORM_DEVICE_NAME,
|
||||
'tautulli_python_version': common.PYTHON_VERSION,
|
||||
}
|
||||
return tautulli
|
||||
|
|
|
@ -48,6 +48,7 @@ if plexpy.PYTHON2:
|
|||
import notifiers
|
||||
import newsletter_handler
|
||||
import newsletters
|
||||
import plextv
|
||||
import users
|
||||
else:
|
||||
from plexpy import common
|
||||
|
@ -61,6 +62,7 @@ else:
|
|||
from plexpy import notifiers
|
||||
from plexpy import newsletter_handler
|
||||
from plexpy import newsletters
|
||||
from plexpy import plextv
|
||||
from plexpy import users
|
||||
|
||||
|
||||
|
@ -450,11 +452,12 @@ class API2(object):
|
|||
|
||||
mobile_app.set_temp_device_token(True)
|
||||
|
||||
data = {
|
||||
"pms_name": plexpy.CONFIG.PMS_NAME,
|
||||
"server_id": plexpy.CONFIG.PMS_UUID,
|
||||
"tautulli_version": common.RELEASE
|
||||
}
|
||||
plex_server = plextv.get_server_resources(return_info=True)
|
||||
tautulli = plexpy.get_tautulli_info()
|
||||
|
||||
data = {"server_id": plexpy.CONFIG.PMS_UUID}
|
||||
data.update(plex_server)
|
||||
data.update(tautulli)
|
||||
|
||||
return data
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue