From 17a5d64cdca39bef090ba77c2a46b24e819179db Mon Sep 17 00:00:00 2001 From: JinRonin Date: Thu, 25 Jan 2018 13:58:56 +0100 Subject: [plugin.video.dazn] 1.0.7 --- plugin.video.dazn/resources/lib/context.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'plugin.video.dazn/resources/lib/context.py') 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): -- cgit v1.2.3