From f0c1562ab5bab95ed3369b5fa3f757e0abc1c7d3 Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 15 Mar 2018 11:28:31 +0100 Subject: [PATCH] Remove obsolete resumable flag --- resources/lib/kodimonitor.py | 1 - resources/lib/playback.py | 2 -- resources/lib/state.py | 2 -- 3 files changed, 5 deletions(-) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index eb40e186..651c3946 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -415,7 +415,6 @@ class SpecialMonitor(Thread): if (getCondVisibility('Window.IsVisible(DialogContextMenu.xml)') and getInfoLabel('Control.GetLabel(1002)') in strings): # Remember that the item IS indeed resumable - state.RESUMABLE = True control = int(Window(10106).getFocusId()) if control == 1002: # Start from beginning diff --git a/resources/lib/playback.py b/resources/lib/playback.py index 044a753e..bcc883ee 100644 --- a/resources/lib/playback.py +++ b/resources/lib/playback.py @@ -175,7 +175,6 @@ def _ensure_resolve(abort=False): # Reset some playback variables state.CONTEXT_MENU_PLAY = False state.FORCE_TRANSCODE = False - state.RESUMABLE = False state.RESUME_PLAYBACK = False @@ -319,7 +318,6 @@ def _conclude_playback(playqueue, pos): listitem.setProperty('StartOffset', str(item.offset)) listitem.setProperty('resumetime', str(item.offset)) # Reset the resumable flag - state.RESUMABLE = False result.listitem = listitem pickle_me(result) LOG.info('Done concluding playback') diff --git a/resources/lib/state.py b/resources/lib/state.py index 3633267d..b35cd5e7 100644 --- a/resources/lib/state.py +++ b/resources/lib/state.py @@ -145,8 +145,6 @@ PLAYSTATE = { # paths for playback (since we're not receiving a Kodi id) PLEX_IDS = {} PLAYED_INFO = {} -# Flag whether Kodi item where the playback is being started is even resumable -RESUMABLE = False # Set by SpecialMonitor - did user choose to resume playback or start from the # beginning? RESUME_PLAYBACK = False