summaryrefslogtreecommitdiff
path: root/plugin.video.eurosportplayer/resources/lib/sports.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.video.eurosportplayer/resources/lib/sports.py')
-rw-r--r--plugin.video.eurosportplayer/resources/lib/sports.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugin.video.eurosportplayer/resources/lib/sports.py b/plugin.video.eurosportplayer/resources/lib/sports.py
new file mode 100644
index 0000000..72fc221
--- /dev/null
+++ b/plugin.video.eurosportplayer/resources/lib/sports.py
@@ -0,0 +1,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']