mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Use IsFolder key for channels
This commit is contained in:
parent
0afd338cc7
commit
c1abe5d004
1 changed files with 3 additions and 4 deletions
|
@ -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":
|
||||||
|
|
Loading…
Reference in a new issue