From 74210184033b6b511cb35280ceb4bfbcdcf35c86 Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 13 Feb 2018 07:24:39 +0100 Subject: [PATCH] Fix KeyError when browsing On Deck --- resources/lib/videonodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/videonodes.py b/resources/lib/videonodes.py index 5636fb3c..619fdc59 100644 --- a/resources/lib/videonodes.py +++ b/resources/lib/videonodes.py @@ -11,6 +11,7 @@ from xbmcvfs import exists from utils import window, settings, language as lang, try_encode, indent, \ normalize_nodes, exists_dir, try_decode import variables as v +import state ############################################################################### @@ -46,7 +47,7 @@ class VideoNodes(object): def viewNode(self, indexnumber, tagname, mediatype, viewtype, viewid, delete=False): # Plex: reassign mediatype due to Kodi inner workings # How many items do we get at most? - limit = window('fetch_pms_item_number') + limit = state.FETCH_PMS_ITEM_NUMBER mediatypes = { 'movie': 'movies', 'show': 'tvshows',