Fix deviceId

So turns out Network.MacAddress is not the MacAddress of the local
network card.
This commit is contained in:
angelblue05 2018-05-12 22:44:02 -05:00
parent 50f183da21
commit 9ecd546ce6

View file

@ -95,7 +95,7 @@ class ClientInfo(object):
guid.close() guid.close()
""" """
guid = xbmc.getInfoLabel('Network.MacAddress') or ''.join(platform.uname()) guid = ''.join(platform.uname())
client_id = hashlib.sha1(guid).hexdigest().upper() client_id = hashlib.sha1(guid).hexdigest().upper()
xbmc.log("EMBY DeviceId: %s" % client_id, level=xbmc.LOGNOTICE) xbmc.log("EMBY DeviceId: %s" % client_id, level=xbmc.LOGNOTICE)