blob: 1d175753dde9cf02b4b72f9b0738e5fb2d2547d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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])
|