Use IsFolder key for channels

This commit is contained in:
angelblue05 2016-03-19 03:27:38 -05:00
parent 0afd338cc7
commit c1abe5d004
1 changed files with 3 additions and 4 deletions

View File

@ -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":