From c12c9c08d88daeeaca83ef272bc2c00b09e76fd3 Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 3 Apr 2018 17:07:37 +0200 Subject: [PATCH] Simplify code --- resources/lib/kodimonitor.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index c6d0efda..fcb29d19 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -431,14 +431,7 @@ class SpecialMonitor(Thread): if getInfoLabel('Control.GetLabel(1002)') in strings: # Remember that the item IS indeed resumable control = int(Window(10106).getFocusId()) - if control == 1002: - # Start from beginning - state.RESUME_PLAYBACK = False - elif control == 1001: - state.RESUME_PLAYBACK = True - else: - # User chose something else from the context menu - state.RESUME_PLAYBACK = False + state.RESUME_PLAYBACK = True if control == 1001 else False else: # Different context menu is displayed state.RESUME_PLAYBACK = False