summaryrefslogtreecommitdiff
path: root/plugin.video.dazn/resources/lib/context.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.video.dazn/resources/lib/context.py')
-rw-r--r--plugin.video.dazn/resources/lib/context.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugin.video.dazn/resources/lib/context.py b/plugin.video.dazn/resources/lib/context.py
index d84cbb1..a4df55d 100644
--- a/plugin.video.dazn/resources/lib/context.py
+++ b/plugin.video.dazn/resources/lib/context.py
@@ -24,15 +24,20 @@ class Context:
self.cm.append((self.plugin.get_string(30231), 'ActivateWindow(Videos, {0})'.format(self.plugin.build_url(d))))
return self.cm
- def related(self, cm_items):
+ def related(self, cm_items):
for i in cm_items:
+ type_ = i['type']
+ if type_ == 'Highlights':
+ type_ = self.plugin.get_string(30213)
+ elif type_ == 'Condensed':
+ type_ = self.plugin.get_string(30216)
d = {
'mode': 'play_context',
'title': self.plugin.utfenc(i['title']),
'id': i.get('id', ''),
'params': i.get('params','')
}
- self.cm.append((self.plugin.get_string(30213), 'XBMC.RunPlugin({0})'.format(self.plugin.build_url(d))))
+ self.cm.append((type_, 'XBMC.RunPlugin({0})'.format(self.plugin.build_url(d))))
return self.cm
def goto(self, item):