Merge pull request #419 from neilsb/folder-browsing
Handle CollectionFolder to allow browsing Folder Library Type
This commit is contained in:
commit
29d6f80433
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user