Merge pull request #419 from neilsb/folder-browsing

Handle CollectionFolder to allow browsing Folder Library Type
This commit is contained in:
Anthony Lavado 2021-04-13 09:44:37 -04:00 committed by GitHub
commit 29d6f80433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -70,7 +70,7 @@ sub loadInitialItems()
else if m.top.parentItem.collectionType = "Channel" then
m.top.imageDisplayMode = "scaleToFit"
else
print "Unknown Type: " m.top.parentItem
print "[ItemGrid] Unknown Type: " m.top.parentItem
end if
m.loadItemsTask.observeField("content", "ItemDataLoaded")

View File

@ -59,12 +59,12 @@ sub loadItems()
tmp = CreateObject("roSGNode", "CollectionData")
else if item.Type = "TvChannel" then
tmp = CreateObject("roSGNode", "ChannelData")
else if item.Type = "Folder" or item.Type = "ChannelFolderItem" then
else if item.Type = "Folder" or item.Type = "ChannelFolderItem" or item.Type = "CollectionFolder" then
tmp = CreateObject("roSGNode", "FolderData")
else if item.Type = "Video" then
tmp = CreateObject("roSGNode", "VideoData")
else
print "Unknown Type: " item.Type
print "[LoadItems] Unknown Type: " item.Type
end if
if tmp <> invalid then

View File

@ -23,6 +23,8 @@ sub setData()
' Add Icon URLs for display if there is no Poster
if datum.CollectionType = "livetv" then
m.top.iconUrl = "pkg:/images/media_type_icons/live_tv_white.png"
else if datum.CollectionType = "folders" then
m.top.iconUrl = "pkg:/images/media_type_icons/folder_white.png"
end if
else if datum.type = "Episode" then