summaryrefslogtreecommitdiff
path: root/plugin.video.eurosportplayer/resources/lib/events.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.video.eurosportplayer/resources/lib/events.py')
-rw-r--r--plugin.video.eurosportplayer/resources/lib/events.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugin.video.eurosportplayer/resources/lib/events.py b/plugin.video.eurosportplayer/resources/lib/events.py
new file mode 100644
index 0000000..1d17575
--- /dev/null
+++ b/plugin.video.eurosportplayer/resources/lib/events.py
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+
+class Events:
+
+ def __init__(self, plugin, i):
+ self.item = {}
+ self.plugin = plugin
+ self.item['mode'] = 'event'
+ self.item['title'] = self.plugin.utfenc(i['title'])
+ self.item['id'] = i['contentId']
+ self.item['thumb'] = i['heroImage'][0]['rawImage']
+ self.item['fanart'] = i['heroImage'][0]['rawImage']
+ self.item['plot'] = '{0} - {1}'.format(i['startDate'][:10], i['endDate'][:10])
+ \ No newline at end of file