Fix KeyError when browsing On Deck

This commit is contained in:
croneter 2018-02-13 07:24:39 +01:00
parent 3fabb21dac
commit 7421018403

View file

@ -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',