From 32ff49af907250a36f7c981d39f8088e5742dc5a Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Thu, 24 Dec 2015 20:29:57 +0300 Subject: [PATCH] play fix --- .idea/workspace.xml | 201 ++++++++++++++++++++++---------------------- Core.py | 3 +- 2 files changed, 102 insertions(+), 102 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 57ca9a8..00115ce 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,9 +2,8 @@ - - + @@ -34,10 +33,10 @@ - + - + @@ -170,11 +169,11 @@ - + - - + + @@ -341,43 +340,43 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -482,10 +481,10 @@ @@ -799,12 +798,6 @@ \ No newline at end of file diff --git a/Core.py b/Core.py index f5d7403..67fc592 100644 --- a/Core.py +++ b/Core.py @@ -505,7 +505,8 @@ class Core: watchedPercent = int((float(seek) / float(length)) * 100) duration = '%02d:%02d:%02d' % ((length / (60*60)), (length / 60) % 60, length % 60) title = '[%d%%][%s] %s [%d MB]' % (watchedPercent, duration, filename.encode('utf-8'), int(size)) - contextMenu = [(self.localize('Search Control Window'), + contextMenu = [(self.localize('Play'), ListString % ('WatchedHistory', 'play', 'addtime', str(addtime))), + (self.localize('Search Control Window'), 'xbmc.RunScript(%s,)' % os.path.join(ROOT, 'controlcenter.py'))] if watchedPercent >= 85: img = self.ROOT + '/icons/stop-icon.png'