Revert "Fix for "In Progress" not appearing"
This reverts commit 600a22d158
.
This commit is contained in:
parent
ea57eb5f93
commit
303adbf02e
6 changed files with 3 additions and 18 deletions
|
@ -1560,11 +1560,6 @@ msgctxt "#39064"
|
||||||
msgid "Recently Added: Also show already watched episodes"
|
msgid "Recently Added: Also show already watched episodes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
# PKC settings, Appearance Tweaks
|
|
||||||
msgctxt "#39065"
|
|
||||||
msgid "Force-refresh Kodi skin on stopping playback"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
msgctxt "#39066"
|
msgctxt "#39066"
|
||||||
msgid "Recently Added: Also show already watched movies (Refresh Plex playlist/nodes!)"
|
msgid "Recently Added: Also show already watched movies (Refresh Plex playlist/nodes!)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -68,7 +68,6 @@ def reload_pkc():
|
||||||
state.REMAP_PATH = settings('remapSMB') == 'true'
|
state.REMAP_PATH = settings('remapSMB') == 'true'
|
||||||
state.KODI_PLEX_TIME_OFFSET = float(settings('kodiplextimeoffset'))
|
state.KODI_PLEX_TIME_OFFSET = float(settings('kodiplextimeoffset'))
|
||||||
state.FETCH_PMS_ITEM_NUMBER = settings('fetch_pms_item_number')
|
state.FETCH_PMS_ITEM_NUMBER = settings('fetch_pms_item_number')
|
||||||
state.FORCE_RELOAD_SKIN = settings('forceReloadSkin') == 'true'
|
|
||||||
# Init some Queues()
|
# Init some Queues()
|
||||||
state.COMMAND_PIPELINE_QUEUE = Queue()
|
state.COMMAND_PIPELINE_QUEUE = Queue()
|
||||||
state.COMPANION_QUEUE = Queue(maxsize=100)
|
state.COMPANION_QUEUE = Queue(maxsize=100)
|
||||||
|
|
|
@ -47,7 +47,6 @@ STATE_SETTINGS = {
|
||||||
'remapSMBphotoOrg': 'remapSMBphotoOrg',
|
'remapSMBphotoOrg': 'remapSMBphotoOrg',
|
||||||
'remapSMBphotoNew': 'remapSMBphotoNew',
|
'remapSMBphotoNew': 'remapSMBphotoNew',
|
||||||
'enableMusic': 'ENABLE_MUSIC',
|
'enableMusic': 'ENABLE_MUSIC',
|
||||||
'forceReloadSkin': 'FORCE_RELOAD_SKIN',
|
|
||||||
'fetch_pms_item_number': 'FETCH_PMS_ITEM_NUMBER'
|
'fetch_pms_item_number': 'FETCH_PMS_ITEM_NUMBER'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
import xbmc
|
from xbmc import Player
|
||||||
|
|
||||||
import kodidb_functions as kodidb
|
import kodidb_functions as kodidb
|
||||||
import plexdb_functions as plexdb
|
import plexdb_functions as plexdb
|
||||||
|
@ -104,16 +104,11 @@ def _record_playstate(status, ended):
|
||||||
totaltime,
|
totaltime,
|
||||||
playcount,
|
playcount,
|
||||||
last_played)
|
last_played)
|
||||||
# Hack to force "in progress" widget to appear if it wasn't visible before
|
|
||||||
if (state.FORCE_RELOAD_SKIN and
|
|
||||||
xbmc.getCondVisibility('Window.IsVisible(Home.xml)')):
|
|
||||||
LOG.debug('Refreshing skin to update widgets')
|
|
||||||
xbmc.executebuiltin('ReloadSkin()')
|
|
||||||
|
|
||||||
|
|
||||||
class PKC_Player(xbmc.Player):
|
class PKC_Player(Player):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
xbmc.Player.__init__(self)
|
Player.__init__(self)
|
||||||
LOG.info("Started playback monitor.")
|
LOG.info("Started playback monitor.")
|
||||||
|
|
||||||
def onPlayBackStarted(self):
|
def onPlayBackStarted(self):
|
||||||
|
|
|
@ -30,8 +30,6 @@ INDICATE_MEDIA_VERSIONS = False
|
||||||
RUN_LIB_SCAN = None
|
RUN_LIB_SCAN = None
|
||||||
# Number of items to fetch and display in widgets
|
# Number of items to fetch and display in widgets
|
||||||
FETCH_PMS_ITEM_NUMBER = None
|
FETCH_PMS_ITEM_NUMBER = None
|
||||||
# Hack to force Kodi widget for "in progress" to show up if it was empty before
|
|
||||||
FORCE_RELOAD_SKIN = True
|
|
||||||
|
|
||||||
# Stemming from the PKC settings.xml
|
# Stemming from the PKC settings.xml
|
||||||
# Shall we show Kodi dialogs when synching?
|
# Shall we show Kodi dialogs when synching?
|
||||||
|
|
|
@ -144,7 +144,6 @@
|
||||||
|
|
||||||
<category label="39073"><!-- Appearance Tweaks -->
|
<category label="39073"><!-- Appearance Tweaks -->
|
||||||
<setting id="fetch_pms_item_number" label="39077" type="number" default="25" option="int" />
|
<setting id="fetch_pms_item_number" label="39077" type="number" default="25" option="int" />
|
||||||
<setting id="forceReloadSkin" type="bool" label="39065" default="true" /><!-- Force-refresh Kodi skin on stopping playback -->
|
|
||||||
<setting type="lsep" label="39074" /><!-- TV Shows -->
|
<setting type="lsep" label="39074" /><!-- TV Shows -->
|
||||||
<setting id="OnDeckTVextended" type="bool" label="39058" default="true" /><!-- Extend Plex TV Series "On Deck" view to all shows -->
|
<setting id="OnDeckTVextended" type="bool" label="39058" default="true" /><!-- Extend Plex TV Series "On Deck" view to all shows -->
|
||||||
<setting id="OnDeckTvAppendShow" type="bool" label="39047" default="false" /><!--On Deck view: Append show title to episode-->
|
<setting id="OnDeckTvAppendShow" type="bool" label="39047" default="false" /><!--On Deck view: Append show title to episode-->
|
||||||
|
|
Loading…
Reference in a new issue