fix viewmode

This commit is contained in:
marco
2020-06-07 11:12:06 +02:00
parent 8b90da65d7
commit 0b4563b0a9

View File

@@ -266,8 +266,7 @@ def viewmodeMonitor():
currentModeName = xbmc.getInfoLabel('Container.Viewmode')
win = xbmcgui.Window(xbmcgui.getCurrentWindowId())
currentMode = int(win.getFocusId())
if currentModeName and 'plugin.video.kod' in xbmc.getInfoLabel(
'Container.FolderPath') and currentMode < 1000 and currentMode > 50: # inside addon and in itemlist view
if currentModeName and 'plugin.video.kod' in xbmc.getInfoLabel('Container.FolderPath'): # inside addon and in itemlist view
content, Type = platformtools.getCurrentView()
if content:
defaultMode = int(config.get_setting('view_mode_%s' % content).split(',')[-1])