Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.module.garepobg"
name="garepobg"
version="0.1.4"
version="0.1.5"
provider-name="kodi1">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.requests" version="1.1.0"/>
</requires>
<extension point="xbmc.python.module"
Expand Down
7 changes: 3 additions & 4 deletions lib/ga.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

import os, sys
import requests
Expand Down Expand Up @@ -32,7 +31,7 @@ def __get_platform(self):
"android": "Linux; U; Android 4.0.3; ko-kr; LG-L160L Build/IML74K"
}

for platform, ua_platform_name in platforms.items():
for platform, ua_platform_name in list(platforms.items()):
if xbmc.getCondVisibility("System.Platform.%s" % platform):
if platform == "Windows":
import sys
Expand Down Expand Up @@ -61,15 +60,15 @@ def update(self, data, crash):
data['ua'] = self.__mkua()
data['cid'] = self.__addon.getSetting('uid')
data['uid'] = self.__addon.getSetting('uid')
data['aiid'] = u'-'.join([xbmc.getInfoLabel('System.FriendlyName').split()[0], xbmc.getInfoLabel('System.BuildVersion')])
data['aiid'] = '-'.join([xbmc.getInfoLabel('System.FriendlyName').split()[0], xbmc.getInfoLabel('System.BuildVersion')])

if crash is not None:
data['t'] = 'exception'
data['exd'] = self.__except_report(crash)
data['exf'] = '1'

if self.__addon.getSetting('dbg') == 'true':
xbmc.log((u">>> %s -> %s <<<" % (self.__addon.getAddonInfo('name'), data,)).encode('utf-8'),level=xbmc.LOGNOTICE)
xbmc.log((">>> %s -> %s <<<" % (self.__addon.getAddonInfo('name'), data,)).encode('utf-8'),level=xbmc.LOGINFO)

if self.__addon.getSetting('ga') != 'true':
return ret
Expand Down