summaryrefslogtreecommitdiff
path: root/plugin.video.dazn/resources/lib/common.py
diff options
context:
space:
mode:
authorJinRonin <jin@xyz.de>2018-01-25 13:58:56 +0100
committerMartijn Kaijser <martijn@xbmc.org>2018-01-25 18:48:20 +0100
commit17a5d64cdca39bef090ba77c2a46b24e819179db (patch)
tree90bbf751923dd5d5bb05651be8900eeb9f487a15 /plugin.video.dazn/resources/lib/common.py
parent376c75a827b3064a02968888744fd25e5dd5e255 (diff)
[plugin.video.dazn] 1.0.7
Diffstat (limited to 'plugin.video.dazn/resources/lib/common.py')
-rw-r--r--plugin.video.dazn/resources/lib/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin.video.dazn/resources/lib/common.py b/plugin.video.dazn/resources/lib/common.py
index d171d9a..5c3efe0 100644
--- a/plugin.video.dazn/resources/lib/common.py
+++ b/plugin.video.dazn/resources/lib/common.py
@@ -29,6 +29,7 @@ class Common:
self.content = addon.getSetting('content')
self.view_id = addon.getSetting('view_id')
self.force_view = addon.getSetting('force_view') == 'true'
+ self.startup = addon.getSetting('startup') == 'true'
def utfenc(self, text):
result = text
@@ -114,7 +115,7 @@ class Common:
if ":" in mac_addr:
device_id = str(uuid.UUID(hashlib.md5(str(mac_addr.decode("utf-8"))).hexdigest()))
else:
- log("[{0}] error: failed to get device id ({1})".format(self.addon_id, str(mac_addr)))
+ self.log("[{0}] error: failed to get device id ({1})".format(self.addon_id, str(mac_addr)))
self.dialog_ok(30051)
self.set_setting('device_id', device_id)
return device_id