summaryrefslogtreecommitdiff
path: root/plugin.video.eurosportplayer/resources/lib/sports.py
blob: 72fc221b301697187ecab6c2521f25ca18e51fa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- coding: utf-8 -*-

class Sports:

    def __init__(self, plugin, i):
        self.item = {}
        self.plugin = plugin
        self.item['mode'] = 'videos'
        self.item['title'] = self.plugin.utfenc(i['tags'][0]['displayName'])
        sport = i['sport']
        logo = i['logoImage']
        if logo and sport:
            if sport.isdigit():
                self.item['id'] = sport
            self.item['thumb'] = logo[0]['rawImage']