mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-13 02:23:18 +00:00
add server id to startup event
This commit is contained in:
parent
1c1ddd4f49
commit
fff3790119
2 changed files with 8 additions and 3 deletions
|
|
@ -20,6 +20,7 @@ import videonodes
|
|||
import websocket_client as wsc
|
||||
from utils import window, settings, dialog, language as lang
|
||||
from ga_client import GoogleAnalytics
|
||||
import md5
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
|
@ -156,9 +157,13 @@ class Service(object):
|
|||
self.shutdown()
|
||||
|
||||
def _startup(self):
|
||||
|
||||
|
||||
serverId = settings('serverId')
|
||||
if(serverId != None):
|
||||
serverId = md5.new(serverId).hexdigest()
|
||||
|
||||
ga = GoogleAnalytics()
|
||||
ga.sendEventData("Application", "Startup")
|
||||
ga.sendEventData("Application", "Startup", serverId)
|
||||
|
||||
# Start up events
|
||||
self.warn_auth = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue