Use IsFolder key for channels

This commit is contained in:
angelblue05 2016-03-19 03:27:38 -05:00
parent 0afd338cc7
commit c1abe5d004

View file

@ -678,10 +678,9 @@ def BrowseChannels(itemid, folderid=None):
itemid = item['Id'] itemid = item['Id']
itemtype = item['Type'] itemtype = item['Type']
li = createListItemFromEmbyItem(item,art,doUtils) li = createListItemFromEmbyItem(item,art,doUtils)
if itemtype == "ChannelFolderItem":
isFolder = True isFolder = item.get('IsFolder', False)
else:
isFolder = False
channelId = item.get('ChannelId', "") channelId = item.get('ChannelId', "")
channelName = item.get('ChannelName', "") channelName = item.get('ChannelName', "")
if itemtype == "Channel": if itemtype == "Channel":