diff options
author | JinRonin <jin@xyz.de> | 2018-01-18 20:23:15 +0100 |
---|---|---|
committer | Martijn Kaijser <martijn@xbmc.org> | 2018-01-24 18:14:39 +0100 |
commit | 376c75a827b3064a02968888744fd25e5dd5e255 (patch) | |
tree | de33e32c55ef0403e27883848f7de1d61fd8ae7d /plugin.video.eurosportplayer/resources/lib/events.py | |
parent | ecc83e939343fbc3a00fe76fc429f1b322648761 (diff) |
[plugin.video.eurosportplayer] 2.0.6
Diffstat (limited to 'plugin.video.eurosportplayer/resources/lib/events.py')
-rw-r--r-- | plugin.video.eurosportplayer/resources/lib/events.py | 14 |
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 |