From c1abe5d00486ceed1723beae867dc72db8093403 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 19 Mar 2016 03:27:38 -0500 Subject: [PATCH] Use IsFolder key for channels --- resources/lib/entrypoint.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index b565392a..d2ba1c26 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -678,10 +678,9 @@ def BrowseChannels(itemid, folderid=None): itemid = item['Id'] itemtype = item['Type'] li = createListItemFromEmbyItem(item,art,doUtils) - if itemtype == "ChannelFolderItem": - isFolder = True - else: - isFolder = False + + isFolder = item.get('IsFolder', False) + channelId = item.get('ChannelId', "") channelName = item.get('ChannelName', "") if itemtype == "Channel":