mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Discover localhost server
This commit is contained in:
parent
e567134ee1
commit
ab5384cfdf
5 changed files with 114 additions and 33 deletions
|
@ -2193,7 +2193,7 @@ class PmsConnect(object):
|
|||
|
||||
return server_info
|
||||
|
||||
def get_server_identity(self):
|
||||
def get_server_identity(self, log=True):
|
||||
"""
|
||||
Return the local machine identity.
|
||||
|
||||
|
@ -2204,7 +2204,8 @@ class PmsConnect(object):
|
|||
try:
|
||||
xml_head = identity.getElementsByTagName('MediaContainer')
|
||||
except Exception as e:
|
||||
logger.warn(u"Tautulli Pmsconnect :: Unable to parse XML for get_local_server_identity: %s." % e)
|
||||
if log:
|
||||
logger.warn(u"Tautulli Pmsconnect :: Unable to parse XML for get_local_server_identity: %s." % e)
|
||||
return {}
|
||||
|
||||
server_identity = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue